10 txs
20 calls
constructor
constructor(address _glowToken, address _governance) payable
functions
cumulativeAllocated
viewfunction cumulativeAllocated() view returns (uint256)
cumulativePaidOut
viewfunction cumulativePaidOut() view returns (uint256)
GENESIS_TIMESTAMP
viewfunction GENESIS_TIMESTAMP() view returns (uint256)
GLOW_TOKEN
viewfunction GLOW_TOKEN() view returns (address)
GOVERNANCE
viewfunction GOVERNANCE() view returns (address)
recipientBalance
viewfunction recipientBalance(address) view returns (uint256)
totalBalanceInGrantsTreasury
viewfunction totalBalanceInGrantsTreasury() view returns (uint256)
allocateGrantFunds
nonpayablefunction allocateGrantFunds(address to, uint256 amount) returns (bool)
claimGlowFromTreasury
nonpayablefunction claimGlowFromTreasury()
claimGrantReward
nonpayablefunction claimGrantReward()
events
GrantFundsAllocated
event GrantFundsAllocated(address indexed recipient, uint256 amount)
GrantFundsAllocationFailed
event GrantFundsAllocationFailed(address indexed recipient, uint256 amount)
GrantFundsClaimed
event GrantFundsClaimed(address indexed to, uint256 amount)
TreasurySynced
event TreasurySynced(uint256 amount)
errors
AllocationCannotBeZero
error AllocationCannotBeZero()
CallerNotGovernance
error CallerNotGovernance()
creation bytecode
0x60e0604052604051610900380380610900833981016040819052610022916100be565b6001600160a01b03808316608081905290821660a05260408051630308135160e21b81529051630c204d44916004808201926020929091908290030181865afa158015610073573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061009791906100f1565b60c0525061010a9050565b80516001600160a01b03811681146100b957600080fd5b919050565b600080604083850312156100d157600080fd5b6100da836100a2565b91506100e8602084016100a2565b90509250929050565b60006020828403121561010357600080fd5b5051919050565b60805160a05160c0516107ac610154600039600060c8015260008181610102015261035301526000818161016e0152818161027e015281816104c401526105d901526107ac6000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c80637b9d8c2111610076578063cd1209901161005b578063cd120990146101ac578063e2d95b63146101cf578063f4d5a133146101d757600080fd5b80637b9d8c2114610199578063a06ab2a2146101a257600080fd5b80631ff6f4b7116100a75780631ff6f4b71461014957806339b6eaf5146101695780635f34be161461019057600080fd5b80630c204d44146100c357806314627834146100fd575b600080fd5b6100ea7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6101247f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100f4565b6100ea61015736600461069a565b60026020526000908152604090205481565b6101247f000000000000000000000000000000000000000000000000000000000000000081565b6100ea60015481565b6100ea60005481565b6101aa6101df565b005b6101bf6101ba3660046106bc565b610339565b60405190151581526020016100f4565b6101aa6104c0565b6100ea610591565b3360009081526002602052604081205490819003610220576102207fd730e5d800000000000000000000000000000000000000000000000000000000610667565b33600090815260026020526040812081905560018054839290610244908490610715565b90915550506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb906044016020604051808303816000875af11580156102dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103009190610728565b5060405181815233907f439969c6365f3fa537183af845b98df43fe2f62d4b99365899ddb965772291b09060200160405180910390a250565b60003373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146103a1576103a17ff2be30fb00000000000000000000000000000000000000000000000000000000610667565b6103a96104c0565b60006103b3610591565b905082811015610417578373ffffffffffffffffffffffffffffffffffffffff167f2bb8117b627d62a8735b3a632de866f8352d413099bc18c0fe549809f8e9f82b8460405161040591815260200190565b60405180910390a260009150506104ba565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600260205260408120805485929061044c908490610715565b92505081905550826000808282546104649190610715565b909155505060405183815273ffffffffffffffffffffffffffffffffffffffff8516907f898f607cfdef31e27e34edac40c34d14eca9c3ef7cdba51047aac077189933819060200160405180910390a260019150505b92915050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16633a80ccfe6040518163ffffffff1660e01b81526004016020604051808303816000875af115801561052f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610553919061074a565b90507ff9bc5076c5e954ba12029cdd6a99bc5fcd325cb30d5c68841eef1518720cd0be8160405161058691815260200190565b60405180910390a150565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610644919061074a565b9050600054600154826106579190610715565b6106619190610763565b91505090565b8060005260046000fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461069557600080fd5b919050565b6000602082840312156106ac57600080fd5b6106b582610671565b9392505050565b600080604083850312156106cf57600080fd5b6106d883610671565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156104ba576104ba6106e6565b60006020828403121561073a57600080fd5b815180151581146106b557600080fd5b60006020828403121561075c57600080fd5b5051919050565b818103818111156104ba576104ba6106e656fea2646970667358221220abef56e38865559df15c7523f973e0fef9d27fe1e885bac7f2f9b005186b028c64736f6c63430008150033000000000000000000000000f4fbc617a5733eaaf9af08e1ab816b103388d8b60000000000000000000000008d01a258bc1adb728322499e5d84173ea971d665