Liquidity Operations
In all structures below, rollover_hints_list
can be left empty
Adding Liquidity
join
method is used to add collateral to a pool in exchange for pool share ERC20 tokens.
Removing Liquidity
Removing liquidity from a pool is a two-step process. First, exit
method creates a redemption request and adds it to Redemption Queue. The queue is processed automatically when users interact with the protocol and free collateral becomes available. Once that happens, the queued request is converted to Released Liquidity - an amount of collateral available to withdraw at any time. This can be done using withdrawReleasedLiquidity
method.
Note: if enough free collateral is available when the request is made, then the entire process above happens atomically.
Last updated