Verified contractExactMIT
StakingPool
Address0x93666797a2ae5cc8876d9bc00a67ecdcc6e7a4fa
- Balance
0 ETH
- Transactions
229
- Compiler
solc 0.6.12
- Same code
2 more contracts
Details
- Compiler
- solc 0.6.12+commit.27d51765
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- constantinople
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 13,326,118
- Creation transaction
- 0x0970b3ce0e…d8b16c9d2d
- Main copy (most transactions)
- 0x456df576…6b8cb413
Read26
- MIN_STAKE_BALANCE() → (uint256)
- allowance(address,address) → (uint256)
- balanceOf(address) → (uint256)
- calculateUnstake(address,uint256) → (uint256,uint256)
- claimingFeePercent() → (uint256)
- currentStrategy() → (tuple)
- decimals() → (uint8)
- defaultPrice() → (uint256,uint256,uint256)
- feePool() → (uint256)
- getCurrentStrategyUnlockedRewards() → (uint256)
- getUnlockedRewards() → (uint256,bool)
- getUnstake(address) → (tuple)
- lastUpdatedAt() → (uint256)
- lockedRewards() → (uint256)
- name() → (string)
- nextStrategy() → (tuple)
- nominatedOwner() → (address)
- owner() → (address)
- price() → (uint256,uint256,uint256)
- priceStored() → (uint256,uint256,uint256)
- stakingToken() → (address)
- symbol() → (string)
- totalStaked() → (uint256)
- totalSupply() → (uint256)
- totalUnstaked() → (uint256)
- unstakingTime() → (uint256)
Write20
- acceptOwnership() → (bool)
- approve(address,uint256) → (bool)
- cancelUnstaking(uint256) → (bool)
- claim(uint256) → (uint256,uint256)
- claimFees() → (uint256)
- createNewStrategy(uint256,uint256,uint256) → (bool)
- decreaseAllowance(address,uint256) → (bool)
- decreasePool(uint256) → (bool)
- increaseAllowance(address,uint256) → (bool)
- increasePool(uint256) → (bool)
- nominateNewOwner(address) → (bool)
- setClaimingFeePercent(uint256) → (bool)
- setUnstakingTime(uint256) → (bool)
- stake(uint256) → (uint256)
- stakeForUser(address,uint256) → (uint256)
- transfer(address,uint256) → (bool)
- transferFrom(address,address,uint256) → (bool)
- unstake(uint256) → (uint256,uint256)
- update() → (bool)
- withdraw() → (bool)
Events19
- Approval(address,address,uint256)
- Claimed(address,uint256,uint256,uint256,uint256)
- ClaimingFeePercentUpdated(uint256)
- CurrentStrategyUpdated(uint256,uint256,uint256)
- FeeClaimed(address,uint256)
- NextStrategyRemoved()
- NextStrategyUpdated(uint256,uint256,uint256)
- OwnerChanged(address)
- OwnerNominated(address)
- PoolDecreased(uint256)
- PoolIncreased(address,uint256)
- PriceUpdated(uint256,uint256,uint256)
- RewardsUnlocked(uint256)
- Staked(address,address,uint256,uint256)
- Transfer(address,address,uint256)
- Unstaked(address,uint256,uint256,uint256)
- UnstakingCanceled(address,uint256)
- UnstakingTimeUpdated(uint256)
- Withdrawed(address,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "syntheticTokenName",
"type": "string",
"internalType": "string"
},
{
"name": "syntheticTokenSymbol",
"type": "string",
"internalType": "string"
},
{
"name": "stakingToken_",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "owner_",
"type": "address",
"internalType": "address"
},
{
"name": "claimingFeePercent_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "perSecondReward_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "startsAt_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "duration_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unstakingTime_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "defaultPriceMantissa",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "Approval",
"type": "event",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Claimed",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "requestedAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "claimedAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "feeAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "burnedAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "ClaimingFeePercentUpdated",
"type": "event",
"inputs": [
{
"name": "feePercent",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "CurrentStrategyUpdated",
"type": "event",
"inputs": [
{
"name": "perSecondReward",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "startsAt",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "endsAt",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "FeeClaimed",
"type": "event",
"inputs": [
{
"name": "receiver",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "NextStrategyRemoved",
"type": "event",
"inputs": [],
"anonymous": false
},
{
"name": "NextStrategyUpdated",
"type": "event",
"inputs": [
{
"name": "perSecondReward",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "startsAt",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "endsAt",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "OwnerChanged",
"type": "event",
"inputs": [
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "OwnerNominated",
"type": "event",
"inputs": [
{
"name": "nominatedOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "PoolDecreased",
"type": "event",
"inputs": [
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "PoolIncreased",
"type": "event",
"inputs": [
{
"name": "payer",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "PriceUpdated",
"type": "event",
"inputs": [
{
"name": "mantissa",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "base",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "exponentiation",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RewardsUnlocked",
"type": "event",
"inputs": [
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Staked",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "payer",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "stakedAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "mintedAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Transfer",
"type": "event",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Unstaked",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "requestedAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "unstakedAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "burnedAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "UnstakingCanceled",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "UnstakingTimeUpdated",
"type": "event",
"inputs": [
{
"name": "unstakingTime",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Withdrawed",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "MIN_STAKE_BALANCE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "acceptOwnership",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "allowance",
"type": "function",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "approve",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "balanceOf",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "calculateUnstake",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "unstakedAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "burnedAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "cancelUnstaking",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "claim",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "claimedAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "burnedAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "claimFees",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "claimingFeePercent",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "createNewStrategy",
"type": "function",
"inputs": [
{
"name": "perSecondReward_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "startsAt_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "duration_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "currentStrategy",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "tuple",
"components": [
{
"name": "endsAt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "perSecondReward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "startsAt",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct StakingPool.Strategy"
}
],
"stateMutability": "view"
},
{
"name": "decimals",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
}
],
"stateMutability": "view"
},
{
"name": "decreaseAllowance",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "subtractedValue",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "decreasePool",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "defaultPrice",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "mantissa",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "base",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "exponentiation",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "feePool",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getCurrentStrategyUnlockedRewards",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "unlocked",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getUnlockedRewards",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "unlocked",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "currentStrategyEnded",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "getUnstake",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "result",
"type": "tuple",
"components": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "applicableAt",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct StakingPool.Unstake"
}
],
"stateMutability": "view"
},
{
"name": "increaseAllowance",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "addedValue",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "increasePool",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "lastUpdatedAt",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "lockedRewards",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "name",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "nextStrategy",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "tuple",
"components": [
{
"name": "endsAt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "perSecondReward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "startsAt",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct StakingPool.Strategy"
}
],
"stateMutability": "view"
},
{
"name": "nominateNewOwner",
"type": "function",
"inputs": [
{
"name": "owner_",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "nominatedOwner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "price",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "mantissa",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "base",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "exponentiation",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "priceStored",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "mantissa",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "base",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "exponentiation",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "setClaimingFeePercent",
"type": "function",
"inputs": [
{
"name": "feePercent",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "setUnstakingTime",
"type": "function",
"inputs": [
{
"name": "unstakingTime_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "stake",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "mintedAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "stakeForUser",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "mintedAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "stakingToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "symbol",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "totalStaked",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "totalSupply",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "totalUnstaked",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "transfer",
"type": "function",
"inputs": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "transferFrom",
"type": "function",
"inputs": [
{
"name": "sender",
"type": "address",
"internalType": "address"
},
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "unstake",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "unstakedAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "burnedAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "unstakingTime",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "update",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "withdraw",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.