Verified contractPartial
StakingRewards
Address0xd8a6bcde7fcaca76ece4a8a93f9953729a2fd91c
- Balance
0 ETH
- Transactions
1,356
- Compiler
solc 0.5.16
- Same code
2 more contracts
Details
- Compiler
- solc 0.5.16+commit.9c3226ce
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- istanbul
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 10,895,288
- Creation transaction
- 0x1e01409409…337b669093
- Main copy (most transactions)
- 0xab6384c3…1266eb1d
Read13
- balanceOf(address) → (uint256)
- earned(address) → (uint256)
- lastRewardPaidTime(address) → (uint256)
- lastTimeRewardApplicable() → (uint256)
- periodFinish() → (uint256)
- periodStart() → (uint256)
- rewardPerToken() → (uint256)
- rewardRate() → (uint256)
- rewardsDistribution() → (address)
- rewardsDuration() → (uint256)
- rewardsToken() → (address)
- stakingToken() → (address)
- totalSupply() → (uint256)
Write6
- exit()
- getReward()
- stake(uint256)
- start()
- sync()
- withdraw(uint256)
Events5
- RewardPaid(address,uint256)
- Staked(address,uint256)
- Started()
- Synced()
- Withdrawn(address,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_rewardsDistribution",
"type": "address",
"internalType": "address"
},
{
"name": "_rewardsToken",
"type": "address",
"internalType": "address"
},
{
"name": "_stakingToken",
"type": "address",
"internalType": "address"
}
],
"payable": false,
"stateMutability": "nonpayable"
},
{
"name": "RewardPaid",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "reward",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Staked",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Started",
"type": "event",
"inputs": [],
"anonymous": false
},
{
"name": "Synced",
"type": "event",
"inputs": [],
"anonymous": false
},
{
"name": "Withdrawn",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "balanceOf",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "earned",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "exit",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "getReward",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "lastRewardPaidTime",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "lastTimeRewardApplicable",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "periodFinish",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "periodStart",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "rewardPerToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "rewardRate",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "rewardsDistribution",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "rewardsDuration",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "rewardsToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "stake",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "stakingToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "start",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "sync",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "totalSupply",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "withdraw",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.