Verified contractExactBUSL-1.1
RewardsDistributor
Address0xce23bd7205bf2b543f6b4eec00add0c111fefc3b
- Balance
0 ETH
- Transactions
3,838
- Compiler
solc 0.8.23
- Same code
Only this contract
Details
- Compiler
- solc 0.8.23+commit.f704f362
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- paris
- License
- BUSL-1.1
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 19,983,089
- Creation transaction
- 0x43edbfcabf…3be4cf7e38
Read7
- CHAIN_ID() → (uint64)
- DEADLINE() → (uint256)
- currentPeriodId() → (uint256)
- periodicRewardsClaimed(uint256,address) → (bool)
- periodicRewardsMerkleRootData(uint256) → (uint256,bytes32)
- superRegistry() → (address)
- verifyClaim(address,uint256,address[],uint256[],bytes32[]) → (bool)
Write5
- batchClaim(address,uint256[],address[][],uint256[][],bytes32[][])
- claim(address,uint256,address[],uint256[],bytes32[])
- invalidatePeriod(uint256)
- rescueRewards(address[],uint256[])
- setPeriodicRewards(bytes32)
Events2
- PeriodicRewardsSet(uint256,bytes32,uint256)
- RewardsClaimed(address,address,uint256,address[],uint256[])
Errors17
- ALREADY_CLAIMED()
- AddressEmptyCode(address)
- AddressInsufficientBalance(address)
- BLOCK_CHAIN_ID_OUT_OF_BOUNDS()
- CLAIM_DEADLINE_PASSED()
- FailedInnerCall()
- INVALID_BATCH_REQ()
- INVALID_BATCH_REQ_TOKENS_AMOUNTS()
- INVALID_CLAIM()
- INVALID_MERKLE_ROOT()
- INVALID_RECEIVER()
- INVALID_REQ_TOKENS_AMOUNTS()
- MERKLE_ROOT_NOT_SET()
- NOT_REWARDS_ADMIN()
- SafeERC20FailedOperation(address)
- ZERO_ADDRESS()
- ZERO_ARR_LENGTH()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "superRegistry_",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "ALREADY_CLAIMED",
"type": "error",
"inputs": []
},
{
"name": "AddressEmptyCode",
"type": "error",
"inputs": [
{
"name": "target",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "AddressInsufficientBalance",
"type": "error",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "BLOCK_CHAIN_ID_OUT_OF_BOUNDS",
"type": "error",
"inputs": []
},
{
"name": "CLAIM_DEADLINE_PASSED",
"type": "error",
"inputs": []
},
{
"name": "FailedInnerCall",
"type": "error",
"inputs": []
},
{
"name": "INVALID_BATCH_REQ",
"type": "error",
"inputs": []
},
{
"name": "INVALID_BATCH_REQ_TOKENS_AMOUNTS",
"type": "error",
"inputs": []
},
{
"name": "INVALID_CLAIM",
"type": "error",
"inputs": []
},
{
"name": "INVALID_MERKLE_ROOT",
"type": "error",
"inputs": []
},
{
"name": "INVALID_RECEIVER",
"type": "error",
"inputs": []
},
{
"name": "INVALID_REQ_TOKENS_AMOUNTS",
"type": "error",
"inputs": []
},
{
"name": "MERKLE_ROOT_NOT_SET",
"type": "error",
"inputs": []
},
{
"name": "NOT_REWARDS_ADMIN",
"type": "error",
"inputs": []
},
{
"name": "SafeERC20FailedOperation",
"type": "error",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "ZERO_ADDRESS",
"type": "error",
"inputs": []
},
{
"name": "ZERO_ARR_LENGTH",
"type": "error",
"inputs": []
},
{
"name": "PeriodicRewardsSet",
"type": "event",
"inputs": [
{
"name": "periodId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "merkleRoot",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
},
{
"name": "startTimestamp",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RewardsClaimed",
"type": "event",
"inputs": [
{
"name": "claimer",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "receiver",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "periodId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "rewardTokens_",
"type": "address[]",
"indexed": false,
"internalType": "address[]"
},
{
"name": "amountsClaimed_",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
}
],
"anonymous": false
},
{
"name": "CHAIN_ID",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint64",
"internalType": "uint64"
}
],
"stateMutability": "view"
},
{
"name": "DEADLINE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "batchClaim",
"type": "function",
"inputs": [
{
"name": "receiver_",
"type": "address",
"internalType": "address"
},
{
"name": "periodIds_",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "rewardTokens_",
"type": "address[][]",
"internalType": "address[][]"
},
{
"name": "amountsClaimed_",
"type": "uint256[][]",
"internalType": "uint256[][]"
},
{
"name": "proofs_",
"type": "bytes32[][]",
"internalType": "bytes32[][]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "claim",
"type": "function",
"inputs": [
{
"name": "receiver_",
"type": "address",
"internalType": "address"
},
{
"name": "periodId_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "rewardTokens_",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "amountsClaimed_",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "proof_",
"type": "bytes32[]",
"internalType": "bytes32[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "currentPeriodId",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "invalidatePeriod",
"type": "function",
"inputs": [
{
"name": "periodId_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "periodicRewardsClaimed",
"type": "function",
"inputs": [
{
"name": "periodId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "claimerAddress",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "claimed",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "periodicRewardsMerkleRootData",
"type": "function",
"inputs": [
{
"name": "periodId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "startTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "merkleRoot",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "rescueRewards",
"type": "function",
"inputs": [
{
"name": "rewardTokens_",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "amounts_",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setPeriodicRewards",
"type": "function",
"inputs": [
{
"name": "root_",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "superRegistry",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ISuperRegistry"
}
],
"stateMutability": "view"
},
{
"name": "verifyClaim",
"type": "function",
"inputs": [
{
"name": "receiver_",
"type": "address",
"internalType": "address"
},
{
"name": "periodId_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "rewardTokens_",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "amountsClaimed_",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "proof_",
"type": "bytes32[]",
"internalType": "bytes32[]"
}
],
"outputs": [
{
"name": "valid",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.