Skip to Content
Dashboard

Reinvest the accumulated fees of a liquidity position

Collects the accumulated pool fees of the position, swaps the excess side to the exact token proportion the position range demands at the current pool price, and increases the liquidity of the same NFT — all in a single user operation.

POST
/api/v1/liquidity/reinvest

Authorization

x-api-key
headerx-api-key<token>

Request Body

application/json
  1. body
liquidityProvider?string

Optional provider for the reinvest operation. Defaults to Uniswap v3 if omitted.

Value in"UNISWAP_V3""PANCAKESWAP_V3""UNISWAP_V4"
nftAddress?|

Optional position manager (NFT contract) of the position: the nftAddress returned when the position was created. It selects the liquidity provider; if liquidityProvider is also sent, both must name the same provider. Without either, Uniswap V3 is used.

walletAddress*string

Wallet that owns the liquidity position NFT.

chainId*number

Target blockchain for the reinvest operation. Supported EVM chains:

  • Arbitrum One: 42161
  • Avalanche: 43114
  • Base: 8453
  • BNB Smart Chain: 56
  • Ethereum: 1
  • Gnosis: 100
  • OP Mainnet: 10
  • Polygon: 137
  • X Layer Mainnet: 196
  • Robinhood Chain: 4663
nftId*string

ID of the NFT that represents the liquidity

slippage?number

Maximum tolerated slippage for the increaseLiquidity leg (1 unit = 1%). The proportion-adjustment swap runs with a fixed 0.5% slippage.

Range0 < value <= 99
Default0.5
transactionFeePercent?number

Custom project fee percent to apply over the adjustment swap amount.

Range0 <= value <= 99.99
Default0
extraFee?

Optional extra fee configuration that is charged once during the reinvest.

metadata?

Custom metadata. Key-value pairs with string values. Max 1KB size.

Response Body

Quote information for the reinvest operation.

application/json
  1. response
operation*