Skip to main content
Wraps Ramses V3 positions in the ERC721 non-fungible token interface. Extends the standard position management with gauge reward claiming and voter integration.

Functions

constructor

positions

Returns the position information associated with a given token ID. Throws if the token ID is not valid.

Parameters:

Return Values:

mint

Creates a new position wrapped in a NFT Call this when the pool does exist and is initialized. Note that if the pool is created but not initialized a method does not exist, i.e. the pool is assumed to be initialized.

Parameters:

Return Values:

tokenURI

Returns a URI describing a particular token ID

Parameters:

Return Values:

A base64 string with the URI data.

increaseLiquidity

Increases the amount of liquidity in a position, with tokens paid by the msg.sender

Parameters:

Return Values:

decreaseLiquidity

Decreases the amount of liquidity in a position and accounts it to the position

Parameters:

Return Values:

collect

Collects up to a maximum amount of fees owed to a specific position to the recipient

Parameters:

recipient The account that should receive the tokens, amount0Max The maximum amount of token0 to collect, amount1Max The maximum amount of token1 to collect

Return Values:

burn

Burns a token ID, which deletes it from the NFT contract. The token must have 0 liquidity and all tokens must be collected first.

Parameters:

getReward

Claims gauge rewards for a given position NFT. Ramses-specific addition for collecting emissions from GaugeV3.

Parameters:

setVoter

Sets the Voter contract address for gauge integration. Ramses-specific.

Parameters: