Skip to content

Instantly share code, notes, and snippets.

@ameensol
ameensol / privacy-pools-ceremony_attestation.log
Created February 19, 2025 23:36
Attestation for Privacy Pools Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm ameensol-2306490 and I have contributed to the Privacy Pools Ceremony.
The following are my contribution signatures:
Circuit # 1 (withdraw)
Contributor # 9
Contribution Hash:
fed222f4 3b82af2e 42bd361a ed43ec23
80127445 940b3e61 a5e1a13f 644aa823
cd9d3be1 50c27b42 c9cc322d a7d11a40
80c79f43 50f8b8f4 ab21ded2 a9c3b717
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "proposals",
// Once the page load, check if we have a connected web3 wallet and if we
// allow ETH deposits and if so fetch the ETH deposit address
// and create a transaction with web3.
useEffect(() => {
if (
!(exchangeRates && exchangeRates.isDone) ||
!Web3.givenProvider ||
!window.ethereum ||
invoice.acceptedCurrencies.indexOf('ETH') === -1
) return
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreihrcoc2g4kikikprbeahkymcxrcvrtw2gxxyt3rs75iqt6m343uvq ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
// Once the page load, check if we have a connected web3 wallet and if we
// allow ETH deposits and if so fetch the ETH deposit address
// and create a transaction with web3.
useEffect(() => {
if (
!(exchangeRates && exchangeRates.isDone) ||
!Web3.givenProvider ||
!window.ethereum ||
invoice.acceptedCurrencies.indexOf('ETH') === -1
) return
[
{
"constant": true,
"inputs": [],
"name": "mintingFinished",
"outputs": [
{
"name": "",
"type": "bool"
}
[
{
"constant": true,
"inputs": [],
"name": "currentPeriod",
"outputs": [
{
"name": "",
"type": "uint256"
}
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
[
{
"constant": true,
"inputs": [],
"name": "duration",
"outputs": [
{
"name": "",
"type": "uint256"
}
/*
* @dev Calculates the utilization and borrow rates for use by getBorrowRate function
*/
function getUtilizationAndAnnualBorrowRate(uint cash, uint borrows) view internal returns (IRError, Exp memory, Exp memory) {
(IRError err0, Exp memory utilizationRate) = getUtilizationRate(cash, borrows);
if (err0 != IRError.NO_ERROR) {
return (err0, Exp({mantissa: 0}), Exp({mantissa: 0}));
}
// Borrow Rate is 5% + UtilizationRate * 45% (baseRate + UtilizationRate * multiplier);