Provide liquidity¶
You can provide liquidity to the DEX pools and earn fees. Positions are concentrated-liquidity (Uniswap-V3-style), so each one covers a price range. As with swaps, you must be logged in with a minted DID.
Impermanent loss is real
Providing liquidity exposes you to price movement in the pool. Understand the position before you fund it; see Risk & responsible use.
Add a position¶
Adjust an existing position¶
pd.increase_liquidity(...) # add to a position
pd.collect_fees(...) # withdraw accrued fees
pd.preview_fees(...) # what's collectable
Remove or close¶
pd.remove_liquidity(...) # take liquidity back out
pd.burn_position(...) # close an emptied position
Inspect your positions¶
For exact parameters (price ranges, amounts, token pairs), see the SDK reference — it's generated from the source, so it never drifts.
Related: Place a swap · On-chain balances