Removing Liquidity
In this guide, we will use an example of DotSwap process to show how to remove liquidity from a pool, which includes:
Removing
Pre-remove Request
Get Unsigned Remove PSBT
Send Signed Remove PSBT
Get Estimated Remove Amount
The removing interface for Runes/BRC20/ARC20 is the same, differentiated by
coin_type_*.
token
Success
Success
Example
token
Success
Success
Example
Example
token
Decimal, Percentage, Integer
Only BTC for now
Success
Success
Example
Explanation on Fees
The actual amount received by the user will have the key custodial service's fee deducted, which is calculated using the mutisign_fee_proportion field returned by the backend (initially 0.3%, and may adjust in the future if the key custodial service changes).
Fee Calculation
Removing BTC-BRC20: Fee = BTC satoshi amount * 0.3%
Removing BTC-ARC20: Fee = BTC satoshi amount * 0.3% + ARC20 satoshi amount * 0.3%
Removing BRC20-BRC20: Free
Calculation of the Actual Amount Received by the User:
Last updated