UNPKG

@augmentedfinance/protocol-v1

Version:

Augmented Protocol smart contracts

496 lines (495 loc) 10.2 kB
[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "pool", "type": "address" }, { "indexed": true, "internalType": "address", "name": "provider", "type": "address" }, { "components": [ { "internalType": "address", "name": "provider", "type": "address" }, { "internalType": "address", "name": "impl", "type": "address" }, { "internalType": "string", "name": "poolName", "type": "string" }, { "internalType": "uint256", "name": "initialRate", "type": "uint256" }, { "internalType": "uint32", "name": "boostFactor", "type": "uint32" }, { "internalType": "uint16", "name": "baselinePercentage", "type": "uint16" } ], "indexed": false, "internalType": "struct IRewardConfigurator.PoolInitData", "name": "data", "type": "tuple" } ], "name": "RewardPoolInitialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "pool", "type": "address" }, { "indexed": false, "internalType": "address", "name": "impl", "type": "address" } ], "name": "RewardPoolUpgraded", "type": "event" }, { "inputs": [], "name": "REVISION", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "contract IManagedRewardPool[]", "name": "pools", "type": "address[]" }, { "internalType": "string[]", "name": "names", "type": "string[]" }, { "internalType": "uint32[]", "name": "boostFactors", "type": "uint32[]" } ], "name": "addNamedRewardPools", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "provider", "type": "address" }, { "internalType": "address", "name": "impl", "type": "address" }, { "internalType": "string", "name": "poolName", "type": "string" }, { "internalType": "uint256", "name": "initialRate", "type": "uint256" }, { "internalType": "uint32", "name": "boostFactor", "type": "uint32" }, { "internalType": "uint16", "name": "baselinePercentage", "type": "uint16" } ], "internalType": "struct IRewardConfigurator.PoolInitData[]", "name": "entries", "type": "tuple[]" } ], "name": "batchInitRewardPools", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "poolName", "type": "string" }, { "internalType": "uint16", "name": "baselinePercentage", "type": "uint16" } ], "name": "buildRewardPoolInitData", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "symbol", "type": "string" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" } ], "name": "buildRewardTokenInitData", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract IManagedRewardPool", "name": "boostPool", "type": "address" }, { "internalType": "bool", "name": "updateRate", "type": "bool" }, { "internalType": "address", "name": "excessTarget", "type": "address" }, { "internalType": "bool", "name": "mintExcess", "type": "bool" } ], "name": "configureRewardBoost", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract TeamRewardPool", "name": "pool", "type": "address" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "uint32", "name": "unlockedAt", "type": "uint32" }, { "internalType": "address[]", "name": "members", "type": "address[]" }, { "internalType": "uint16[]", "name": "memberShares", "type": "uint16[]" } ], "name": "configureTeamRewardPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getDefaultController", "outputs": [ { "internalType": "contract IManagedRewardController", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string[]", "name": "names", "type": "string[]" } ], "name": "getNamedRewardPools", "outputs": [ { "internalType": "address[]", "name": "pools", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "pools", "type": "address[]" } ], "name": "getPoolParams", "outputs": [ { "internalType": "address[]", "name": "controllers", "type": "address[]" }, { "internalType": "uint256[]", "name": "rates", "type": "uint256[]" }, { "internalType": "uint16[]", "name": "baselinePcts", "type": "uint16[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "excludeBoost", "type": "bool" } ], "name": "getPoolTotals", "outputs": [ { "internalType": "uint256", "name": "totalBaselinePercentage", "type": "uint256" }, { "internalType": "uint256", "name": "totalRate", "type": "uint256" }, { "internalType": "uint256", "name": "activePoolCount", "type": "uint256" }, { "internalType": "uint256", "name": "poolCount", "type": "uint256" }, { "internalType": "uint256", "name": "listCount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getProxyAdmin", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "tokens", "type": "address[]" } ], "name": "getRewardedTokenParams", "outputs": [ { "internalType": "address[]", "name": "pools", "type": "address[]" }, { "internalType": "address[]", "name": "controllers", "type": "address[]" }, { "internalType": "uint256[]", "name": "rates", "type": "uint256[]" }, { "internalType": "uint16[]", "name": "baselinePcts", "type": "uint16[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" } ], "name": "implementationOf", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "addressesProvider", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "list", "outputs": [ { "internalType": "address[]", "name": "pools", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "address", "name": "impl", "type": "address" } ], "internalType": "struct IRewardConfigurator.PoolUpdateData", "name": "input", "type": "tuple" } ], "name": "updateRewardPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]