Verified contractExactMIT
RewardsCycleManager
Address0xd3ad3193c19e34e78807d91e1fbcc72cb74e2bba
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.28
- Same code
Only this contract
Details
- Compiler
- solc 0.8.28+commit.7893614a
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 23,426,734
- Creation transaction
- 0x83759022ac…503950cf1c
Read7
- CRITICAL_OPS_ROLE() → (bytes32)
- DEFAULT_ADMIN_ROLE() → (bytes32)
- getRoleAdmin(bytes32) → (bytes32)
- hasRole(bytes32,address) → (bool)
- stakedVision() → (address)
- supportsInterface(bytes4) → (bool)
- visionToken() → (address)
Write5
- createRewardsCycle(uint256,uint256,uint256)
- grantRole(bytes32,address)
- renounceRole(bytes32,address)
- rescueTokens(address,uint256,address)
- revokeRole(bytes32,address)
Events4
- RoleAdminChanged(bytes32,bytes32,bytes32)
- RoleGranted(bytes32,address,address)
- RoleRevoked(bytes32,address,address)
- TokensRescued(address,uint256,address)
Errors10
- AccessControlBadConfirmation()
- AccessControlUnauthorizedAccount(address,bytes32)
- CycleEndTimestampInThePast()
- InvalidRewardsAmount()
- InvalidZeroAddress()
- PreviousCycleNotFinished()
- RewardsCycleDurationTooLong()
- SafeERC20FailedOperation(address)
- TokenOrStakingPaused()
- TransferFailed()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "visionToken_",
"type": "address",
"internalType": "contract VisionToken"
},
{
"name": "stakedVision_",
"type": "address",
"internalType": "contract StakedVision"
},
{
"name": "criticalOps",
"type": "address",
"internalType": "address"
},
{
"name": "defaultAdmin",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "AccessControlBadConfirmation",
"type": "error",
"inputs": []
},
{
"name": "AccessControlUnauthorizedAccount",
"type": "error",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "neededRole",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"name": "CycleEndTimestampInThePast",
"type": "error",
"inputs": []
},
{
"name": "InvalidRewardsAmount",
"type": "error",
"inputs": []
},
{
"name": "InvalidZeroAddress",
"type": "error",
"inputs": []
},
{
"name": "PreviousCycleNotFinished",
"type": "error",
"inputs": []
},
{
"name": "RewardsCycleDurationTooLong",
"type": "error",
"inputs": []
},
{
"name": "SafeERC20FailedOperation",
"type": "error",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "TokenOrStakingPaused",
"type": "error",
"inputs": []
},
{
"name": "TransferFailed",
"type": "error",
"inputs": []
},
{
"name": "RoleAdminChanged",
"type": "event",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "previousAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "newAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "RoleGranted",
"type": "event",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "RoleRevoked",
"type": "event",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "TokensRescued",
"type": "event",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "CRITICAL_OPS_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "DEFAULT_ADMIN_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "createRewardsCycle",
"type": "function",
"inputs": [
{
"name": "rewardsAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "rewardsCycleEndTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "bpsYieldCapPerSecond",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "getRoleAdmin",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "grantRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "hasRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "renounceRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "callerConfirmation",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "rescueTokens",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "revokeRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "stakedVision",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract StakedVision"
}
],
"stateMutability": "view"
},
{
"name": "supportsInterface",
"type": "function",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "visionToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract VisionToken"
}
],
"stateMutability": "view"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.