Smart Contract Functions
Write Functions
Staking Functions
Stake: This call takes in the user's desired number of MON to stake, transfers them from the user's wallet to the
Vault
. It then mints the appropriate number of sMON tokens to the user's wallet.
Unstaking Functions
Request Unlock: This takes the users's sMON tokens and burns them, then sends the unlock request to the Validators. This request is made by the user when they would like to start the unstaking process. The user specifies how many of their sMON they would like to submit for MON in return.
Delegate Withdraw Unbonded: This tells each Validator to claim its unbonded amount, after that amount is made available to the Validator post-cooldown period. This sends all of the MON claimed by Validators back to the
Vault
.Redeem: This method returns the user's available unstaked MON to their wallet from the Vault.
Redeem with Withdraw: This is a wrapper function that executes
delegateWithdrawUnbonded
andredeem
.
Community Functions
Compound: Anyone on the network can make a
compound
call. This sets off a command from theVault
that makes it all the way down to the participating Validators to claim then re-bond the claimed MON. This enables Kintsu to benefit from compounding yield rewards, and can happen at most once per Era. For more information on this, see Community Actions.
Read-only Functions
Here is a non-exhausted list of commonly used functions.
Get Fee Percentage: Returns the current protocol Management Fee.
Get Incentive Percentage: This returns the incentive fee given to those who execute the
compound
function.Get Shares from MON: Returns the current value sMON in terms of AZERO. This is constantly changing. For more information, see Redemption Ratio.
Get MON from Shares: Returns the current value MON in terms of sMON. This is constantly changing. For more information, see Redemption Ratio.
In addition, the Vault
contract includes a number of basic getter methods for various values. For more information on these, see the contrat's interface on our Github.
Last updated