Add liquidity

From UBot Studio
Revision as of 16:36, 4 July 2023 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

add liquidity is a command that adds liquidity to a liquidity pool on a decentralized exchange (DEX).

In decentralized finance (DeFi), liquidity pools are smart contracts that contain funds. When you supply equal amounts of two tokens to a pool, you'll receive liquidity tokens in return. These are proof of your contribution to the pool.

Parameters

Exchange: The decentralized exchange where the liquidity is being added.

Token A ID: The first token of the liquidity pair that is being added to the pool.

Token B ID: The second token of the liquidity pair that is being added to the pool.

Amount A: The amount of Token A that you are adding to the liquidity pool.

Amount B: The amount of Token B that you are adding to the liquidity pool.

Transaction Info Variable: (Advanced, optional) The variable name where transaction information will be stored. The default value is '#txinfo'.

Example

add liquidity("SushiSwap", "ETH", "SUSHI", "10", "10000")

In this example, the 'add liquidity' command is adding liquidity to the SushiSwap decentralized exchange. It adds 10 ETH and 10000 SUSHI to the liquidity pool. These two tokens (ETH and SUSHI) make up a liquidity pair in the SushiSwap liquidity pool.

Post-run

After running this command, RecordTxData will be executed to record transaction data.

    • Please note:**

Adding liquidity involves risk, including impermanent loss. Please make sure to conduct your own research and understand the risks before supplying tokens to a liquidity pool. You should also ensure you have enough balance of the tokens you want to add to the pool.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox