LiquidityTimeCommitmentManager
The LiquidityTimeCommitmentManager
contract is responsible for tracking the time commitments of liquidity positions in Uniswap V4 pools.
Core Functionalities
Time Commitment Tracking: The contract stores a mapping of
TimeCommitment
structs for each liquidity position in a pool. TheTimeCommitment
struct contains information about the duration of the liquidity provision.Update Time Commitments: The
updatePositionTimeCommitment
function allows for updating the time commitment of a specific liquidity position. This function is called by theTaxController
when a liquidity provider adds or modifies their position.Retrieve Time Commitments: The
getTimeCommitment
function allows other contracts to retrieve the time commitment of a specific liquidity position.
Events
PositionTimeCommitmentUpdated
: This event is emitted whenever the time commitment of a position is updated. It includes the pool ID, the position key, the new time commitment value, and the liquidity of the position.
Last updated