UpgradeableStakingLST
Last updated
Last updated
Staking share into staking pool.
Parameter | Type | Description |
---|---|---|
Withdraw share from staking pool.
Parameter | Type | Description |
---|---|---|
<aside> <img src="/icons/info-alternate_gray.svg" alt="/icons/info-alternate_gray.svg" width="40px" /> If the pool has been converted, the withdrawn token should be the converted token. If the converted token is WTDOT, the retrieved token should be tDOT.
</aside>
Claim all rewards from staking pool.
Un-stake all staked share and claim all unclaimed rewards from staking pool.
<aside> <img src="/icons/info-alternate_gray.svg" alt="/icons/info-alternate_gray.svg" width="40px" /> It is the order to execute unstake
+ claimRewards
, if any event is banned, it will be reverted。
</aside>
Get the index of next pool.It’s equal to the current count of pools. This is zero by default.
<aside> <img src="/icons/info-alternate_gray.svg" alt="/icons/info-alternate_gray.svg" width="40px" /> This value will be incremented by 1 whenever addPool
.
</aside>
Initialize a staking pool for shareType
.
Can be called only by owner.
Update the reward rule of rewardType
for poolId
pool.
Can be called only by owner.
Get the reward rule for rewardType
reward of poolId
pool.
Set deduction rate
of claim rewards for poolId
pool.
Can be called only by owner.
Get the rewards deduction rate of poolId
pool.
<aside> <img src="/icons/info-alternate_gray.svg" alt="/icons/info-alternate_gray.svg" width="40px" /> The deduction rate. 1e18 is 100%
</aside>
Get the share token of poolId
pool.
Get the share amount of who
of poolId
pool.
Get the total share amount of poolId
pool.
Get who
's unclaimed reward amount of specific rewardType
at poolId
pool.
Get the exchange rate for share to rewardType
reward token of poolId
pool.
The reward part is accumulated rate adds pending to accumulate rate, it's used to calculate reward. 1e18 is 100%.
Get the reward token types of poolId
pool.
Get the unclaimed paid rewardType
reward amount for who
of poolId
pool.
Get latest time that can be used to accumulate rewards for rewardType
reward of poolId
pool.
Get the paid accumulated rate of rewardType
for who
of poolId
pool.
convert the share token of ‘poolId’ pool to LST token by convertType
.
Get the LSD conversion info of poolId
pool.
<aside> <img src="/icons/info-alternate_gray.svg" alt="/icons/info-alternate_gray.svg" width="40px" /> If the pool has been converted, the withdrawn token should be the converted token. If the converted token is WTDOT, the retrieved token should be tDOT.
</aside>
Set the paused
status of operation
for poolId
pool.
Can be called only by owner.
Get the pause status of operation
for poolId
pool.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
poolId
uint256
The index of staking pool.
amount
uint256
The share amount to be staked.
poolId
uint256
The index of staking pool.
amount
uint256
The share amount to be un-staked
poolId
uint256
The index of staking pool.
poolId
uint256
The index of staking pool.
shareType
contract IERC20
Initialize the ERC20 contract address of the pool
poolId
uint256
The index of staking pool.
shareType
contract IERC20
The reward token address.
rewardRate
uint256
The reward amount per second.
endTime
uint256
The end time of rule.
poolId
uint256
The index of staking pool.
rewardType
contract IERC20
The reward token address.
poolId
uint256
The index of staking pool.
rate
uint256
The deduction rate. 1e18 is 100%
poolId
uint256
The index of staking pool.
poolId
uint256
The pool id to be queried.
poolId
uint256
The pool id to be queried.
who
address
The address of staker.
poolId
uint256
The pool id to be queried.
poolId
uint256
The index of staking pool.
who
address
The address of staker.
rewardType
contract IERC20
The reward token address.
poolId
uint256
The index of staking pool.
rewardType
contract IERC20
The reward token address.
poolId
uint256
The index of staking pool.
poolId
uint256
The index of staking pool.
who
address
The address of staker.
rewardType
contract IERC20
The reward token address.
poolId
uint256
The index of staking pool.
rewardType
contract IERC20
The reward token address.
poolId
uint256
The index of staking pool.
who
address
The address of staker.
rewardType
contract IERC20
The reward token address.
poolId
uint256
The index of staking pool.
convertType
enum UpgradeableStakingLST.ConvertType
The convert type.
poolId
uint256
The index of staking pool.
poolId
uint256
The index of staking pool.
operation
enum PoolOperationPausable.Operation operation
The user operation.
paused
bool
The pause status.
poolId
uint256
The index of staking pool.
operation
enum PoolOperationPausable.Operation operation
The user operation.