Staking Pool
stake
Users can pledge funds in a contract to be used as proof of subscription.
Parameters:
name | type | description |
---|---|---|
amount | uint256 | Number of tokens applied for |
unstake
Users can withdraw their funds in full at any time before the end of the collection cycle.
getStakingInfo
Query the valid subscription information of the user's current turn
Parameters:
name | type | description |
---|---|---|
user | address | User address for subscription |
issueAmount | uint | Number of tokens spent by the user to subscribe for tokens |
issueTime | uint | Time for users to subscribe |
isStaking | bool | Whether or not the funds were raised |
swap (removed during audit)
Users of historical batches can sell their RWA shares to those who want to buy them at the moment by using this function, which can be executed if there are enough funds for the current round of subscriptions and they have not been withdrawn.
Parameters:
name | type | description |
---|---|---|
amount | uint | Number of RWA assets to be converted |
setRate
Set the exchange ratio of swap, 10000 is 100%, only administrator can set it.
Parameters:
name | type | description |
---|---|---|
_rate | uint | Trading rate,10000 = 100% |
withdraw
Calling this function extracts the issueToken from the contract and can only be called by administrators.
Query method
name | type | description |
---|---|---|
issueToken | address | Token used for user subscription |
redeemToekn | address | RWA tokens available to users |
issues | Issues | Requisition Record |
pendingLiquidation | uint | Number of subscription tokens to be cleared |
rate | uint | swap exchange rate,10000==100% |
Last updated