oswap.io
WebsiteGitHubDiscord
0.3.0
0.3.0
  • Getting started
  • Protocol
    • Factory AA
      • Create
    • Pool AA
      • Info
      • Mint
      • Burn
      • Swap
    • Bug bounty
  • SDK
    • Oswap.js
    • Texto.js
  • Guides
    • Migrate liquidity
    • Custom linking
Powered by GitBook
On this page
  • Arguments
  • Example
  • Returns

Was this helpful?

  1. Protocol
  2. Pool AA

Burn

Withdraw liquidity in the pair by burning pool assets.

Arguments

  • Send pool asset output required

  • to data optional Define the receiver address.

  • deadline data optional

    Define a timestamp, the request will be bounced if deadline expired.

Example

{
  trigger: {
    outputs: {
      base: 10000,
      'gD5qf2cwFjVQN+6EefOF2QCsey+eFZz5KvKuybE3XbY=': 50000
    }
  }
}

Returns

{
  responseVars: {
    type: 'burn',
    asset0_amount: 50000,
    asset1_amount: 256000
  }
}

PreviousMintNextSwap

Last updated 5 years ago

Was this helpful?