Verified contractPartialMIT
NativeStaking
Address0x92e4fa0b03ce166ab95d00a34ab5603ad166b3e2
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.8.21
- Same code
Only this contract
Details
- Compiler
- solc 0.8.21+commit.d9974bed
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- shanghai
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 18,263,117
- Creation transaction
- 0x88241f6497…3212c796c1
Read16
- MAXIMUM_HARVEST_INTERVAL() → (uint256)
- apr(uint256) → (uint256)
- feeRecipient() → (address)
- getTokenPriceInEthPair(address,address) → (uint256)
- owner() → (address)
- pendingReward(uint256,address) → (uint256)
- poolInfo(uint256) → (address,uint256,uint256,uint256,uint16,uint256,uint256,uint256)
- poolLength() → (uint256)
- stakerCount() → (uint256)
- stakingToken() → (address)
- startTimestamp() → (uint256)
- tierMutiplier(uint256) → (uint256)
- tierStartBlance(uint256) → (uint256)
- treasury() → (address)
- tvl(uint256) → (uint256)
- userInfo(uint256,address) → (uint256,uint256,uint256,uint256)
Write10
- add(address,uint16)
- deposit(uint256,uint256)
- emergencyWithdraw(uint256)
- emergencyWithdraw()
- massUpdatePools()
- renounceOwnership()
- set(uint256,uint16)
- transferOwnership(address)
- updatePool(uint256)
- withdraw(uint256,uint256)
Events9
- Deposit(address,uint256,uint256)
- EmergencyWithdraw(address,uint256,uint256)
- EmissionRateUpdated(address,uint256,uint256)
- OwnershipTransferred(address,address)
- ReferralCommissionPaid(address,address,uint256)
- RewardLockedUp(address,uint256,uint256)
- RoundEnd(uint256)
- RoundStarted(uint256)
- Withdraw(address,uint256,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_stakingToken",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "_treasury",
"type": "address",
"internalType": "address"
},
{
"name": "_startTimestamp",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "Deposit",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "pid",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "EmergencyWithdraw",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "pid",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "EmissionRateUpdated",
"type": "event",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "previousAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "newAmount",
"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": "ReferralCommissionPaid",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "referrer",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "commissionAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RewardLockedUp",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "pid",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "amountLockedUp",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RoundEnd",
"type": "event",
"inputs": [
{
"name": "id",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RoundStarted",
"type": "event",
"inputs": [
{
"name": "id",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Withdraw",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "pid",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "MAXIMUM_HARVEST_INTERVAL",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "add",
"type": "function",
"inputs": [
{
"name": "_rewardToken",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "_withdrawFeeBP",
"type": "uint16",
"internalType": "uint16"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "apr",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "deposit",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "emergencyWithdraw",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "emergencyWithdraw",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "feeRecipient",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "getTokenPriceInEthPair",
"type": "function",
"inputs": [
{
"name": "router",
"type": "address",
"internalType": "contract IUniswapV2Router02"
},
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "massUpdatePools",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pendingReward",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "poolInfo",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "rewardToken",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "accRewardPerShare",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tvl",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalMultipliedSupply",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "withdrawFeeBP",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "claimedReward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "prevRewardAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "stakerCount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "poolLength",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "renounceOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "set",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_withdrawFeeBP",
"type": "uint16",
"internalType": "uint16"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "stakerCount",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "stakingToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "startTimestamp",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "tierMutiplier",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "tierStartBlance",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "treasury",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "tvl",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "updatePool",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "userInfo",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "multipliedAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "claimedReward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "rewardDebt",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "withdraw",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.