UNPKG

@augmentedfinance/protocol-v1

Version:

Augmented Protocol smart contracts

329 lines (328 loc) 6.22 kB
[ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "baseline", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "totalRate", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "mask", "type": "uint256" } ], "name": "BaselineUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "by", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "paused", "type": "bool" } ], "name": "EmergencyPaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "minter", "type": "address" } ], "name": "RewardMinterSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "pool", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "mask", "type": "uint256" } ], "name": "RewardPoolAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "pool", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "mask", "type": "uint256" } ], "name": "RewardPoolRemoved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "fromPool", "type": "address" } ], "name": "RewardsAllocated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "RewardsClaimed", "type": "event" }, { "inputs": [ { "internalType": "contract IManagedRewardPool", "name": "", "type": "address" } ], "name": "addRewardPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "holder", "type": "address" }, { "internalType": "uint256", "name": "allocated", "type": "uint256" }, { "internalType": "uint32", "name": "since", "type": "uint32" }, { "internalType": "enum AllocationMode", "name": "mode", "type": "uint8" } ], "name": "allocatedByPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getAccessController", "outputs": [ { "internalType": "contract IMarketAccessController", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getPools", "outputs": [ { "internalType": "contract IManagedRewardPool[]", "name": "", "type": "address[]" }, { "internalType": "uint256", "name": "ignoreMask", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "isConfigAdmin", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isPaused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "isRateAdmin", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract IManagedRewardPool", "name": "", "type": "address" } ], "name": "removeRewardPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "paused", "type": "bool" } ], "name": "setPaused", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IRewardMinter", "name": "", "type": "address" } ], "name": "setRewardMinter", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "baseline", "type": "uint256" } ], "name": "updateBaseline", "outputs": [ { "internalType": "uint256", "name": "totalRate", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ]