ION Finance
  • Introduction
  • Concepts
    • Pools
    • Asynchronous Routing
  • Guides
    • Getting Started
    • Traders
      • How to Make a Exchange
    • Liquidity Providers
      • How to Add Liquidity
      • How to Remove Liquidity
    • Pool Creation
      • Create Stable Pool
      • Create Volatile Pool
  • Developer
    • Architecture
    • Messages
      • Add Liquidity
      • Remove Liquidity
      • Exchange
      • Cross Pool Exchange
Powered by GitBook
On this page
  1. Developer
  2. Messages

Remove Liquidity

PreviousAdd LiquidityNextExchange

Last updated 1 year ago

Alice wants to remove liquidity from the USDT/WTON pool. When she burns her Pool Tokens, the Router sends her USDT and WTON in return.

  1. Alice's Wallet sends a burn message to Alice's Pool Token Wallet.

  2. Alice's Pool Token Wallet sends a burn_notification message to the Pool.

    1. For a Stable Pool, if the burn amount is less than the amount calculated based on the coins Alice wishes to receive, a message to mint the remaining number of Pool Tokens is sent to the Pool Token Wallet.

  3. The Pool contract sends a pay_to message to the Router.

    1. This message includes the type and amount of coins that should be sent to Alice.

  4. The Router contract sends a transfer message to the Router's Wallet for each coin type.

  5. A transfer message is sent from the Router's Wallet to Alice's Wallet.

    1. Alice receives USDT and WTON.