Creating, Adding, and Removing LP
Last updated
Last updated
⚠️ PLEASE NOTE ⚠️
Regular LPs and swaps are OP-20 <> OP-20 swaps, if you're looking for tBTC <> OP-20 Liquidity Pool docs, go to: Creating a Native LP.
Go to .
To create or add liquidity to a liquidity pool (LP), navigate to the Pool page > Add liquidity.
If you are Creating a new LP pair, simply input the amounts of tokens you want on each side of the liquidity pool as the creator of the LP will determine the ratio of Token A and Token B.
If you are Adding to an already existing LP, you only need to enter the value of Token A OR Token B, the already existing LP ratio will autofill the amount of the other token.
Once you've selected the amount of tokens you want to seed to the LP, click the "Add Liquidity" button.
Review your LP details, and click "Confirm".
If this is your first time approving the contract use of these tokens after acquiring them, you will need sign a transaction for each, and additionally sign a transaction for the LP seeding transaction.
For example, if you've already seeded Token A in another LP, but have not with Token B, you will need to sign an approval transaction for Token B, as well as a transaction for adding both tokens to the LP for a total of 2 transactions.
To view your LP positions, navigate to Pool > View Position.
Here you will be able to have a detailed view all your active LP positions, both OP-20 and Nativeswap.
To remove your LP, either partially or in full, simply click the "Remove Liquidity" button at the bottom right corner of your desired LP position's card.
You will then have the choice to close either a percentage of your LP position, or remove it entirely. Once you've selected, click "Confirm".
Next, review and confirm the amounts of the remove LP transaction. Once you're ready, click "Confirm".
If this is the first time you're removing from a specific LP, you will be asked to approve the spending of the LP, and then asked to sign the removal transaction. After signing these transaction(s), you will have successfully removed the LP!