Minting wispSui
The following section details how to mint wispSui with a list of supported LSDs and Sui.
Deposit
LSDfi::lsdfi::deposit
Module: lsdfi
Type parameters:
T
: LST to deposit into the pool
Parameters:
pool_registry
: mutable reference to the LSDFIPoolRegistry objectaggregator
: reference to the Aggregator object in the WispLSDFIAggregator packagelst
: LST coin of type Tclock
: reference to the Clock object (address: `0x6``)
Use: Put lst
into the pool and transfer back to the sender corresponding amount of wispSUI
LSDfi::lsdfi::deposit_non_entry
Same as deposit
but returns a Coin of wispSUI type for further actions instead of transferring it to the sender.
LSDfi::lsdfi::deposit_mul_coin
Same as deposit
but uses multiple Coins; leftovers will be transferred back to the sender.
lsts
: a vector of coins of type Tamount
: the amount to add to the pool
Deposit SUI
LSDfi::lsdfi::deposit_SUI
Type parameters:
T
: LST to deposit into pool
Parameters:
pool_registry
: mutable reference to the LSDFIPoolRegistry objectexchange_pool_registry
: mutable reference to the PoolRegistry object of WispSwap AMM contractaggregator
: reference to the Aggregator object in the WispLSDFIAggregator packagelst
: LST coin of type Tclock
: reference to Clock object (address:0x6
)
Use: Put sui
into pool and transfer back to the sender the corresponding amount of wispSUI
LSDfi::lsdfi::deposit_SUI_non_entry
Same as deposit_SUI
but return a Coin of wispSUI type for further actions instead of transferring it back to sender
LSDfi::lsdfi::deposit_SUI_mul_coin
Same as deposit_SUI_mul_coin
but use multiple Coin objects, leftovers will be transferred back to sender
suis
: vector of SUI coinsamount
: amount to add into pool
Last updated