rstModule
class of the K2 SDK.
getK2LendingContract function
Get address of the K2 lending contract.Using getK2LendingContract function
Return Parameter
Returns address of K2 Lending contractgetImplementationContract function
Address of the implementation contract that will be cloned (minimal proxy standard).Using getImplementationContract function
Return Parameter
Returns address of implementation contractisRST function
Check if a contract is RST or not.Input Parameters
contractAddress: Address of contractUsing isRST function
Return Parameter
Returnstrue
if valid RST contract, false
otherwise.
sbpToRST function
Get the RST token associated with an SBP(Slashable borrow position) index.Input Parameters
sbpIndex: SBP index in stringUsing sbpToRST function
Return Parameter
Returns RST token address.sbpOwnerToRST function
RST address deployed by the debtor (SBP owner).Input Parameters
debtorAddress: Address of debtorUsing sbpOwnerToRST function
Return Parameter
Returns RST token address.sbpLabel function
Get the label configured by the SBP owner for their SBP index.Input Parameters
sbpIndex: SBP index in stringUsing sbpLabel function
Return Parameter
Returns SBP label in string.deployRST function
Deploy RST. RST can only be deployed at the time of creating the SBP.Input Parameters
debtorAddress: Address of debtor in stringrecipientAddress: Address of the account (in string) that will receive 90% of the tokens minted
dao: DAO address in string that will hold back 10% to ensure that it maintains incentives for native delegation
k2Incentives: Address in string
percentageContributionToIncentives: string
amount: Total supply that will be minted where the upper bound is the SBP principle in string
symbol: The RST token symbol used when deploying the ERC20 cloneable token in string
Using deployRST function
Return Parameter
Address of RST deployed.updateRSTLabel function
Updated label of SBP index.Input Parameters
sbpIndex: SBP index in stringlabel: new SBP label in string