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
TimeCommitmentstructs for each liquidity position in a pool. TheTimeCommitmentstruct contains information about the duration of the liquidity provision.Update Time Commitments: The
updatePositionTimeCommitmentfunction allows for updating the time commitment of a specific liquidity position. This function is called by theTaxControllerwhen a liquidity provider adds or modifies their position.Retrieve Time Commitments: The
getTimeCommitmentfunction 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
