Verified contractExactMIT
Staking
Address0x568e1630b271415ed1934c608995ce94de79e9f7
- Balance
0 ETH
- Transactions
230
- Compiler
solc 0.8.11
- Same code
Only this contract
Details
- Compiler
- solc 0.8.11+commit.d7f03943
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- london
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 14,532,499
- Creation transaction
- 0x215a87ba0f…474e2a4dd2
Read15
- PRECISION_FACTOR() → (uint256)
- accTokenPerShare() → (uint256)
- bonusEndBlock() → (uint256)
- getNumberOfStakers() → (uint256)
- getStakersList(uint256,uint256) → (address[],uint256[],uint256[],uint256[])
- isInitialized() → (bool)
- lastRewardBlock() → (uint256)
- owner() → (address)
- pendingReward(address) → (uint256)
- rewardPerBlock() → (uint256)
- rewardToken() → (address)
- stakedToken() → (address)
- startBlock() → (uint256)
- totalStaked() → (uint256)
- userInfo(address) → (uint256,uint256,uint256,uint256,uint256)
Write11
- deposit(uint256)
- emergencyRewardWithdraw(uint256)
- emergencyWithdraw()
- initialize(address,address,uint256,uint256,uint256,address)
- recoverWrongTokens(address,uint256)
- renounceOwnership()
- stopReward()
- transferOwnership(address)
- updateRewardPerBlock(uint256)
- updateStartAndEndBlocks(uint256,uint256)
- withdraw(uint256)
Events7
- AdminTokenRecovery(address,uint256)
- Deposit(address,uint256)
- EmergencyWithdraw(address,uint256)
- NewRewardPerBlock(uint256)
- NewStartAndEndBlocks(uint256,uint256)
- OwnershipTransferred(address,address)
- Withdraw(address,uint256)
ABI as JSON
[
{
"name": "AdminTokenRecovery",
"type": "event",
"inputs": [
{
"name": "tokenRecovered",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Deposit",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "EmergencyWithdraw",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "NewRewardPerBlock",
"type": "event",
"inputs": [
{
"name": "rewardPerBlock",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "NewStartAndEndBlocks",
"type": "event",
"inputs": [
{
"name": "startBlock",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "endBlock",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "OwnershipTransferred",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Withdraw",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "PRECISION_FACTOR",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "accTokenPerShare",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "bonusEndBlock",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "deposit",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "emergencyRewardWithdraw",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "emergencyWithdraw",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "getNumberOfStakers",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getStakersList",
"type": "function",
"inputs": [
{
"name": "startIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "endIndex",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "stakers",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "stakingTimestamps",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "stakedTokens",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "lockTime",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"name": "initialize",
"type": "function",
"inputs": [
{
"name": "_stakedToken",
"type": "address",
"internalType": "contract IBEP20"
},
{
"name": "_rewardToken",
"type": "address",
"internalType": "contract IBEP20"
},
{
"name": "_rewardPerBlock",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_startBlock",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_bonusEndBlock",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_admin",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "isInitialized",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "lastRewardBlock",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pendingReward",
"type": "function",
"inputs": [
{
"name": "_user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "recoverWrongTokens",
"type": "function",
"inputs": [
{
"name": "_tokenAddress",
"type": "address",
"internalType": "address"
},
{
"name": "_tokenAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "renounceOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "rewardPerBlock",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "rewardToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IBEP20"
}
],
"stateMutability": "view"
},
{
"name": "stakedToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IBEP20"
}
],
"stateMutability": "view"
},
{
"name": "startBlock",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "stopReward",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "totalStaked",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateRewardPerBlock",
"type": "function",
"inputs": [
{
"name": "_rewardPerBlock",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateStartAndEndBlocks",
"type": "function",
"inputs": [
{
"name": "_startBlock",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_bonusEndBlock",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "userInfo",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "rewardDebt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalEarned",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalBonus",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "depositTime",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "withdraw",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.