Verified contractExactUnlicensed
ZDAIStake
Address0xda58aea623affbf1154ff38d3fa55ff04d0807a2
- Balance
0 ETH
- Transactions
268
- Compiler
solc 0.8.25
- Same code
Only this contract
Details
- Compiler
- solc 0.8.25+commit.b61c2a91
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- License
- Unlicensed
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 19,890,523
- Creation transaction
- 0xc6b57797bc…0421bd67b9
Read20
- Bonus(uint256) → (uint256)
- Duration(uint256) → (uint256)
- Stakers(address) → (uint256,uint256,uint256,uint256,bool)
- StakersID(uint256) → (address)
- getPriceinUSD() → (uint256)
- maxStakeableToken() → (uint256)
- minimumStakeToken() → (uint256)
- owner() → (address)
- percentDivider() → (uint256)
- realtimeReward(address) → (uint256)
- realtimeRewardPerBlock(address,uint256) → (uint256,uint256)
- rewardToken() → (address)
- stakeToken() → (address)
- stakersRecord(address,uint256) → (uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,bool)
- token3() → (address)
- totalClaimedRewardToken() → (uint256)
- totalFee() → (uint256)
- totalStakedToken() → (uint256)
- totalStakers() → (uint256)
- totalUnStakedToken() → (uint256)
Write10
- SetStakeBonus(uint256,uint256,uint256,uint256)
- SetStakeDuration(uint256,uint256,uint256,uint256)
- SetStakeLimits(uint256,uint256)
- SetTotalFees(uint256)
- harvest(uint256)
- initToken(address)
- stake(uint256,uint256)
- unstake(uint256)
- withdrawETH()
- withdrawToken(uint256)
Events3
- HARVEST(address,uint256)
- STAKE(address,uint256)
- UNSTAKE(address,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_owner",
"type": "address",
"internalType": "address payable"
},
{
"name": "token1",
"type": "address",
"internalType": "address"
},
{
"name": "token2",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "HARVEST",
"type": "event",
"inputs": [
{
"name": "Staker",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "STAKE",
"type": "event",
"inputs": [
{
"name": "Staker",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "UNSTAKE",
"type": "event",
"inputs": [
{
"name": "Staker",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Bonus",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "Duration",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "SetStakeBonus",
"type": "function",
"inputs": [
{
"name": "first",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "second",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "third",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fourth",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "SetStakeDuration",
"type": "function",
"inputs": [
{
"name": "first",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "second",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "third",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fourth",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "SetStakeLimits",
"type": "function",
"inputs": [
{
"name": "_min",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_max",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "SetTotalFees",
"type": "function",
"inputs": [
{
"name": "_fee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "Stakers",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "totalStakedTokenUser",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalUnstakedTokenUser",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalClaimedRewardTokenUser",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "stakeCount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "alreadyExists",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "StakersID",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "getPriceinUSD",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "harvest",
"type": "function",
"inputs": [
{
"name": "index",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "initToken",
"type": "function",
"inputs": [
{
"name": "addr",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "maxStakeableToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "minimumStakeToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address payable"
}
],
"stateMutability": "view"
},
{
"name": "percentDivider",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "realtimeReward",
"type": "function",
"inputs": [
{
"name": "user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "realtimeRewardPerBlock",
"type": "function",
"inputs": [
{
"name": "user",
"type": "address",
"internalType": "address"
},
{
"name": "blockno",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "rewardToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "stake",
"type": "function",
"inputs": [
{
"name": "amount1",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "timeperiod",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "stakeToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "stakersRecord",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "unstaketime",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "staketime",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "rewardTokenAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "reward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "lastharvesttime",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "remainingreward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "harvestreward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "persecondreward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "withdrawan",
"type": "bool",
"internalType": "bool"
},
{
"name": "unstaked",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "token3",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "totalClaimedRewardToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "totalFee",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "totalStakedToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "totalStakers",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "totalUnStakedToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "unstake",
"type": "function",
"inputs": [
{
"name": "index",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "withdrawETH",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "withdrawToken",
"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.