πŸŠβ€β™€οΈAdd/Remove liquidity to the pool

1 - Create transferable brc-20 pair

To add liquidity to a liquidity pool, it's important to have a transferable BRC-20 token. This is because liquidity pools operate on blockchain networks and require compatible tokens to participate. By providing these tokens, you can contribute to the liquidity of the pool and earn rewards as a liquidity provider.

1.1 - Create transferable brc-20 pair

So before you start adding liquidity, make sure you have a transferable BRC-20 token that's compatible with the pool you want to participate in.

Example: the $ordi & $oshi token you owned need to be transferrable so create the inscription with the amount you owned for the 2 tokens. (it should have been done in step 1)

For $ordi

{
  "p": "brc-20",
  "op": "transfer",
  "tick": "ordi",
  "amt": "100",
  "pool": "1"
}

For $oshi

{
  "p": "brc-20",
  "op": "transfer",
  "tick": "oshi",
  "amt": "100",
  "pool": "1"
}

1.2 - Inscribe OP addliquidity

Once the tokens are fit to be transferable, we can create a new inscription that will add liquidity to the selected pool.

addliquidity inscription

{
  "p": "brc-20",
  "op": "addliquidity",
  "pid": "hashpool",
  "amt1": "1000",
  "amt2": "1000",
  "slip": 0.03
}

2 - Inscribe OP removeLiquidity

Removing liquidity from a BRC-20 liquidity pool can be beneficial for various reasons. By removing funds, you can regain access to your original tokens, allowing you to use them elsewhere or withdraw them altogether.

Additionally, removing liquidity can also be a way to take advantage of market opportunities, such as when the price of an asset in the pool experiences a sudden increase or decrease. However, it's important to note that removing liquidity can also have negative consequences, such as reducing the overall liquidity of the pool, which can impact the stability and performance of the pool.

Therefore, it's important to consider the potential risks and benefits before deciding whether to remove liquidity from a BRC-20 liquidity pool.

Requirements: the $ordi & $oshi token you owned need to be transferrable so create the inscription with the amount you owned for the 2 tokens. (it should have been done in step 1)

2.1 - Create transferable brc-20 pair

So before you start remove liquidity, make sure you have a transferable BRC-20 token that's compatible with the pool you want to participate in.

Example: the $ordi & $oshi token you owned need to be transferrable so create the inscription with the amount you owned for the 2 tokens. (it should have been done in step 1)

For $ordi

{
  "p": "brc-20",
  "op": "transfer",
  "tick": "ordi",
  "amt": "100",
  "pool": "0"
}

For $oshi

{
  "p": "brc-20",
  "op": "transfer",
  "tick": "oshi",
  "amt": "100",
  "pool": "0"
}

2.2 - Inscribe OP removeliquidity

Removeliquidity inscription

{
  "p": "brc-20",
  "op": "removeliquidity",
  "pid": "hashpool",
  "amt1": "100",
  "amt2": "100",
  "slip": 0.03
}

Last updated