Smart Contract Functions
Last updated
Last updated
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.
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
and redeem
.
Compound: Anyone on the network can make a compound
call. This sets off a command from the Vault
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 . For more information on this, see .
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 .
Get MON from Shares: Returns the current value MON in terms of sMON. This is constantly changing. For more information, see .
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.