Verified contractPartialMIT
NFYStaking
Address0x9f18363ff3ab60fdf7dcaca8564a48ea0790b9b3
- Balance
0 ETH
- Transactions
733
- Compiler
solc 0.6.10
- Same code
Only this contract
Details
- Compiler
- solc 0.6.10+commit.00c0fcaf
- Language
- solidity
- Optimization
- No
- EVM version
- istanbul
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 11,151,229
- Creation transaction
- 0x1596b6aa1e…4640a4da7b
Read16
- NFTDetails(uint256) → (address,uint256,bool,uint256)
- NFYToken() → (address)
- StakingNFT() → (address)
- accNfyPerShare() → (uint256)
- checkIfNFTInCirculation(uint256) → (bool)
- dailyReward() → (uint256)
- getNFTBalance(uint256) → (uint256)
- getRewardPerBlock() → (uint256)
- getTotalBalance(address) → (uint256)
- getTotalRewards(address) → (uint256)
- lastRewardBlock() → (uint256)
- owner() → (address)
- pendingRewards(uint256) → (uint256)
- rewardPool() → (address)
- staking() → (address)
- totalStaked() → (uint256)
Write14
- addPlatformAddress(address)
- addStakeholderExternal(address)
- claimAllRewards()
- claimRewards(uint256)
- compoundAllRewards()
- compoundRewards(uint256)
- decrementNFTValue(uint256,uint256)
- incrementNFTValue(uint256,uint256)
- setDailyReward(uint256)
- stakeNFY(uint256)
- transferOwnership(address)
- unstakeAll()
- unstakeNFY(uint256)
- updatePool()
Events9
- AddedPlatformAddress(address,uint256)
- MintedToken(address,uint256,uint256)
- PoolUpdated(uint256,uint256,uint256)
- RewardsClaimed(address,uint256,uint256,uint256)
- RewardsCompounded(address,uint256,uint256,uint256,uint256)
- StakeCompleted(address,uint256,uint256,uint256,uint256)
- TotalUnstaked(uint256)
- TransferredOwnership(address,address,uint256)
- WithdrawCompleted(address,uint256,uint256,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_NFYToken",
"type": "address",
"internalType": "address"
},
{
"name": "_StakingNFT",
"type": "address",
"internalType": "address"
},
{
"name": "_staking",
"type": "address",
"internalType": "address"
},
{
"name": "_rewardPool",
"type": "address",
"internalType": "address"
},
{
"name": "_dailyReward",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "AddedPlatformAddress",
"type": "event",
"inputs": [
{
"name": "_platformAddress",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_time",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "MintedToken",
"type": "event",
"inputs": [
{
"name": "_staker",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_time",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "PoolUpdated",
"type": "event",
"inputs": [
{
"name": "_blocksRewarded",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_amountRewarded",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_time",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RewardsClaimed",
"type": "event",
"inputs": [
{
"name": "_staker",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_rewardsClaimed",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_time",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RewardsCompounded",
"type": "event",
"inputs": [
{
"name": "_staker",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_rewardsCompounded",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_totalStaked",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_time",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "StakeCompleted",
"type": "event",
"inputs": [
{
"name": "_staker",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_totalStaked",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_time",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "TotalUnstaked",
"type": "event",
"inputs": [
{
"name": "_total",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "TransferredOwnership",
"type": "event",
"inputs": [
{
"name": "_previous",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_next",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_time",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "WithdrawCompleted",
"type": "event",
"inputs": [
{
"name": "_staker",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_time",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "NFTDetails",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_addressOfMinter",
"type": "address",
"internalType": "address"
},
{
"name": "_NFYDeposited",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_inCirculation",
"type": "bool",
"internalType": "bool"
},
{
"name": "_rewardDebt",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "NFYToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "StakingNFT",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract INFYStakingNFT"
}
],
"stateMutability": "view"
},
{
"name": "accNfyPerShare",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "addPlatformAddress",
"type": "function",
"inputs": [
{
"name": "_platformAddress",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "addStakeholderExternal",
"type": "function",
"inputs": [
{
"name": "_stakeholder",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "checkIfNFTInCirculation",
"type": "function",
"inputs": [
{
"name": "_tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_inCirculation",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "claimAllRewards",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "claimRewards",
"type": "function",
"inputs": [
{
"name": "_tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "compoundAllRewards",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "compoundRewards",
"type": "function",
"inputs": [
{
"name": "_tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "dailyReward",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "decrementNFTValue",
"type": "function",
"inputs": [
{
"name": "_tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "getNFTBalance",
"type": "function",
"inputs": [
{
"name": "_tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_amountStaked",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getRewardPerBlock",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getTotalBalance",
"type": "function",
"inputs": [
{
"name": "_address",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getTotalRewards",
"type": "function",
"inputs": [
{
"name": "_address",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "incrementNFTValue",
"type": "function",
"inputs": [
{
"name": "_tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "lastRewardBlock",
"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": "pendingRewards",
"type": "function",
"inputs": [
{
"name": "_NFT",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "rewardPool",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "setDailyReward",
"type": "function",
"inputs": [
{
"name": "_dailyReward",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "stakeNFY",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "staking",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "totalStaked",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "_owner",
"type": "address",
"internalType": "address payable"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "unstakeAll",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "unstakeNFY",
"type": "function",
"inputs": [
{
"name": "_tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updatePool",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.