Verified contractPartialMIT
MiningStakeContract
Address0x6fb74e4e8abd3044c625112aaad7e0f401ef514b
- Balance
0 ETH
- Transactions
134
- Compiler
solc 0.8.24
- Same code
Only this contract
Details
- Compiler
- solc 0.8.24+commit.e11b9ed9
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- paris
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 19,339,306
- Creation transaction
- 0x0a09e36b64…7e4c2321fc
Read9
- STAKE_LIMIT() → (uint256)
- getStakeInfo(address) → (uint256,bool,uint256)
- getStakersCount() → (uint256)
- maxUsers() → (uint256)
- owner() → (address)
- rewardToken() → (address)
- stakers(uint256) → (address)
- stakes(address) → (uint256,bool,uint256)
- stakingToken() → (address)
Write9
- claimReward()
- claimStuckTokens(address)
- distributeRewards(uint256)
- setMaxUsers(uint256)
- setRewardToken(address)
- setStakeLimit(uint256)
- setStakingToken(address)
- stake(uint256)
- unstake()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_stakingToken",
"type": "address",
"internalType": "address"
},
{
"name": "_rewardToken",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "STAKE_LIMIT",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "claimReward",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "claimStuckTokens",
"type": "function",
"inputs": [
{
"name": "_token",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "distributeRewards",
"type": "function",
"inputs": [
{
"name": "_rewardAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "getStakeInfo",
"type": "function",
"inputs": [
{
"name": "_user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "stakedAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "isStaked",
"type": "bool",
"internalType": "bool"
},
{
"name": "rewardAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getStakersCount",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "maxUsers",
"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": "rewardToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "setMaxUsers",
"type": "function",
"inputs": [
{
"name": "_maxUsers",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setRewardToken",
"type": "function",
"inputs": [
{
"name": "_newRewardToken",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setStakeLimit",
"type": "function",
"inputs": [
{
"name": "_newLimit",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setStakingToken",
"type": "function",
"inputs": [
{
"name": "_newStakingToken",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "stake",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "stakers",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "stakes",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "staked",
"type": "bool",
"internalType": "bool"
},
{
"name": "reward",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "stakingToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "unstake",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.