A-DEX
  • About Us
    • Intro
    • Audits
    • Roadmap
    • Brand
    • Services
    • Contacts
  • Products
    • Swap
    • Analytics
    • Signals
  • Oracle
  • Tutorials
    • Swap
      • How to login?
      • How to swap?
      • How to add liquidity?
      • How to remove liquidity?
      • How to get pools info?
  • Developers
    • Smart Contracts
      • Swap
        • Tables
        • Actions
        • Examples
          • How to open liquidity account?
          • How to close liquidity account?
          • How to add liquidity?
          • How to remove liquidity?
          • How to swap by market price?
          • How to swap tokens with min out required amount?
          • How to cross-swap tokens by market price?
          • How to cross-swap tokens with min out required amount?
    • SDK
    • API
Powered by GitBook
On this page
  • open
  • close
  • withdraw
  • create
  • issue
  • retire
  • transfer
  • createpool
  • removepool

Was this helpful?

  1. Developers
  2. Smart Contracts
  3. Swap

Actions


open

Parameters:

  • @param owner - owner of the account

  • @param symbol - token symbol

  • @param ram_payer - ram payer

Description:

Open zero balance account.

Required Authorization:

ram_payer account.


close

Parameters:

  • @param owner - owner of the account

  • @param symbol - token symbol

Description:

Close zero balance account.

Required Authorization:

owner account.


withdraw

Parameters:

  • @param owner - owner of the account

  • @param quantity - quantity

Description:

Withdraw liquidity by burning liquidity tokens.

Required Authorization:

owner account.


create

Parameters:

  • @param issuer - issuer account

  • @param maximum_supply - maximum supply of the token

Description:

Create new token.

Required Authorization:

contract account.


issue

Parameters:

  • @param to - receiver of tokens

  • @param quantity - quantity of tokens

  • @param memo - memo description

Description:

Issue new tokens.

Required Authorization:

issuer account.


retire

Parameters:

  • @param from - account

  • @param quantity - quantity of deflate

  • @param memo - memo description

Description:

Burn tokens.

Required Authorization:

issuer account.


transfer

Parameters:

  • @param from - sender account

  • @param to - receiver account

  • @param quantity - quantity

  • @param memo - memo description

Description:

Transfer tokens.

Required Authorization:

from account.


createpool

Parameters:

  • @param base_token - base token

  • @param quote_token - quote token

Description:

Create liquidity pool.

Required Authorization:

listing.adex account.


removepool

Parameters:

  • @param base_token - base token

  • @param quote_token - quote token

Description:

Remove the empty liquidity pool.

Required Authorization:

listing.adex account.


PreviousTablesNextExamples

Last updated 2 months ago

Was this helpful?