Burn
Burn Pool liquidity assets in exchange for removing assets from the Pool.
Transaction Group
0. Pay - pay fees in Algo from Pooler to Pool
fees to cover Tx 1,2,3
Signed by Pooler
App Call - NoOp call to Validator App with args ['burn'], with Pooler account
2. AssetTransfer - Transfer of asset 1 from Pool to Pooler
Signed by Pool LogicSig
Amount is minimum expected amount allowing for slippage
3. (a) AssetTransfer - Transfer of asset 2 from Pool to Pooler
If asset 2 is an ASA
Signed by Pool LogicSig
Amount is minimum expected amount allowing for slippage
3. (b) Pay - Transfer of Algo from Pool to Pooler
If asset 2 is Algo
Signed by Pool LogicSig
Amount is minimum expected amount allowing for slippage
4. AssetTransfer - Transfer of liquidity token asset from Pooler to Pool
Signed by Pooler
Validator App State Changes
Global State
None
Pool Account Local State
o{LIQUIDITY_ASSET_ID}: {int}
// total outstanding unredeemed liquidity asset amounto{ASSET1_ID}: {int}
// total outstanding unredeemed asset 1 amounto{ASSET2_ID}: {int}
// total outstanding unredeemed asset 2 amount
Pooler Account Local State
{POOL_ADDRESS}e{LIQUIDITY_ASSET_ID}: {int}
// excess liquidity asset amount available for redemption{POOL_ADDRESS}e{ASSET1_ID}: {int}
// excess asset 1 amount available for redemption{POOL_ADDRESS}e{ASSET2_ID}: {int}
// excess asset 2 amount available for redemption
Last updated