UNPKG

@gooddollar/goodprotocol

Version:
269 lines (268 loc) 5.51 kB
{ "_format": "hh-sol-artifact-1", "contractName": "StakingRewardsFixedAPY", "sourceName": "contracts/staking/utils/StakingRewardsFixedAPY.sol", "abi": [ { "inputs": [], "name": "PRECISION", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SHARE_DECIMALS", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SHARE_PRECISION", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "amountToShares", "outputs": [ { "internalType": "uint256", "name": "shares", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_account", "type": "address" } ], "name": "earned", "outputs": [ { "internalType": "uint256", "name": "earnedRewards", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getRewardsDebt", "outputs": [ { "internalType": "uint256", "name": "debt", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_account", "type": "address" } ], "name": "getSavings", "outputs": [ { "internalType": "uint256", "name": "balance", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "interestRatePerBlockX64", "outputs": [ { "internalType": "int128", "name": "", "type": "int128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_account", "type": "address" } ], "name": "lastSharePrice", "outputs": [ { "internalType": "uint256", "name": "price", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_account", "type": "address" } ], "name": "principle", "outputs": [ { "internalType": "uint256", "name": "deposited", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "sharePrice", "outputs": [ { "internalType": "uint256", "name": "price", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_account", "type": "address" } ], "name": "sharesOf", "outputs": [ { "internalType": "uint256", "name": "shares", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "sharesSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "stakersInfo", "outputs": [ { "internalType": "uint128", "name": "lastSharePrice", "type": "uint128" }, { "internalType": "uint128", "name": "rewardsPaid", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stats", "outputs": [ { "internalType": "uint128", "name": "lastUpdateBlock", "type": "uint128" }, { "internalType": "uint128", "name": "totalStaked", "type": "uint128" }, { "internalType": "uint128", "name": "totalRewardsPaid", "type": "uint128" }, { "internalType": "uint256", "name": "savings", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }