A contract that allows users on Astar to stake their Dot to receive 1:1 share of sDot in return.
TypeScript
Liquid Staking Contract
This contract allows users on Astar to stake their DOT to receive a share of sDot based on their amount of the total deposited DOT. Every time updateReward(token) is called, we distribute WASTR as rewards to users that are currently staking inside this contract, and they can claim it using harvest, and operator will call withdrawPendingBond with a fixed interval to withdraw all DOTs that are pending to be bonded in order to stake in the relaychain, operator will also call depositUnbonded with a fixed interval to individully distribute to users that have already initiated unstake request in order to claim back their DOT.
Deployed
Environment
Address
Shibuya
0x636F98F63501b72B2916338B903834124845DA81
ASTAR
0xF8d6A9071f54CF9A802De7E2f672A549E089CCD3
Usage
DOT & sDOT
Please note that both DOT & sDOT are haveing only 10 decimals.
Method
Usage
balanceOf(_account)
sDOT balance
totalSupply()
Total issuance of sDOT
internalDotBalance()
Total staked DOT, this gets updated on user stake() / unstake()
Getter functions
Method
Usage
Return
getUserInfo(_account, _rewardToken)
Get user info with reward respective to each reward token(i.e. WASTR)