LiquidityPosition
LiquidityPosition represents an individual liquidity provider’s stake in a TradingPool. When a user supplies NFTs and tokens to a pool, they receive LP tokens tracking their share.
Key Fields:
pool_id
: Links the position to a specific TradingPool.lp_tokens
: The user’s balance of LP tokens.nft_contributed
/tokens_contributed
: Tracks how much the user initially deposited.fees_earned
: Amount of fees this position has accrued over time.
Role:
Allows users to retrieve their proportionate share of the pool’s reserves at any time.
Incentivizes providing liquidity by entitling providers to a share of trading fees.
Last updated