@gooddollar/goodprotocol
Version:
GoodDollar Protocol
69 lines (68 loc) • 1.54 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "ContributionCalc",
"sourceName": "contracts/reserve/GoodReserveCDai.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract GoodMarketMaker",
"name": "_marketMaker",
"type": "address"
},
{
"internalType": "contract GoodReserveCDai",
"name": "_reserve",
"type": "address"
},
{
"internalType": "address",
"name": "_contributer",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_gdAmount",
"type": "uint256"
}
],
"name": "calculateContribution",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_nom",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_denom",
"type": "uint256"
}
],
"name": "setContributionRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}