Add liquidity

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''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 contrac...")
 
Line 1: Line 1:
'''add liquidity''' is a command that adds liquidity to a liquidity pool on a decentralized exchange (DEX).
+
'''defi add liquidity''' is a command that adds liquidity to a liquidity pool on a decentralized exchange.
  
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.
+
This command is particularly useful for enterprise users who want to contribute to liquidity and earn rewards from providing liquidity on a decentralized exchange.
 +
 
 +
== User Level ==
 +
 
 +
This command is exclusively available for enterprise users.
  
 
== Parameters ==
 
== Parameters ==
  
'''Exchange:''' The decentralized exchange where the liquidity is being added.
+
'''Exchange:''' The decentralized exchange where you want to add liquidity.
  
'''Token A ID:''' The first token of the liquidity pair that is being added to the pool.
+
'''Token A ID:''' The ID of the first token that you want to add to the liquidity pool.
  
'''Token B ID:''' The second token of the liquidity pair that is being added to the pool.
+
'''Token B ID:''' The ID of the second token that you want to add to the liquidity pool.
  
'''Amount A:''' The amount of Token A that you are adding to the liquidity pool.
+
'''Amount A:''' The amount of "Token A" that you want to contribute to the liquidity pool.
  
'''Amount B:''' The amount of Token B that you are adding to the liquidity pool.
+
'''Amount B:''' The amount of "Token B" that you want to contribute to the liquidity pool.
  
'''Transaction Info Variable:''' (Advanced, optional) The variable name where transaction information will be stored. The default value is '#txinfo'.
+
'''Transaction Info Variable:''' (Optional) This advanced parameter is the variable to which the transaction details will be stored. If not specified, it will default to a variable named '#txinfo'.
  
 
== Example ==
 
== Example ==
  
 
<pre>
 
<pre>
add liquidity("SushiSwap", "ETH", "SUSHI", "10", "10000")
+
defi add liquidity("Uniswap", "ETH", "DAI", "1", "2000", "#transactionInfo")
 +
ui text msg("Transaction Info: {#transactionInfo}")
 
</pre>
 
</pre>
  
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.
+
In this example, the script contributes one ETH token and 2000 DAI tokens to a liquidity pool on the Uniswap decentralized exchange. It then displays the transaction info in the User Interface.
 
+
== 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.
+

Revision as of 18:30, 4 July 2023

defi add liquidity is a command that adds liquidity to a liquidity pool on a decentralized exchange.

This command is particularly useful for enterprise users who want to contribute to liquidity and earn rewards from providing liquidity on a decentralized exchange.

User Level

This command is exclusively available for enterprise users.

Parameters

Exchange: The decentralized exchange where you want to add liquidity.

Token A ID: The ID of the first token that you want to add to the liquidity pool.

Token B ID: The ID of the second token that you want to add to the liquidity pool.

Amount A: The amount of "Token A" that you want to contribute to the liquidity pool.

Amount B: The amount of "Token B" that you want to contribute to the liquidity pool.

Transaction Info Variable: (Optional) This advanced parameter is the variable to which the transaction details will be stored. If not specified, it will default to a variable named '#txinfo'.

Example

defi add liquidity("Uniswap", "ETH", "DAI", "1", "2000", "#transactionInfo")
ui text msg("Transaction Info: {#transactionInfo}")

In this example, the script contributes one ETH token and 2000 DAI tokens to a liquidity pool on the Uniswap decentralized exchange. It then displays the transaction info in the User Interface.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox