Skip to main content
The Ramses V3 Factory facilitates creation of Ramses V3 pools and control over the protocol fees. It uses the AccessHub pattern for governance instead of simple ownership.

Functions

tickSpacingInitialFee

Returns the default fee for a given tick spacing, if enabled, or 0 if not enabled

Parameters:

Return Values:

getPool

Returns the pool address for a given pair of tokens and tick spacing, or address 0 if it does not exist tokenA and tokenB may be passed in either token0/token1 or token1/token0 order

Parameters:

Return Values:

createPool

Creates a pool for the given two tokens and tick spacing, optionally initializing it with a price tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. The fee is automatically derived from tickSpacingInitialFee. The call will revert if the pool already exists or the token arguments are invalid. If sqrtPriceX96 is non-zero, the pool is initialized with that price.

Parameters:

Return Values:

enableTickSpacing

Enables a tick spacing with the given default fee

Parameters:

setFeeProtocol

Sets the default protocol fee for all pools

Parameters:

setPoolFeeProtocol

Sets the protocol fee for a specific pool

Parameters:

gaugeFeeSplitEnable

Enables gauge fee splitting for a pool

Parameters:

setFeeCollector

Updates the fee collector address

Parameters:

setVoter

Updates the voter contract address

Parameters:

setFee

Sets the swap fee for a specific pool

Parameters:

voter

Returns the address of the Voter contract

feeCollector

Returns the address of the FeeCollector contract

feeProtocol

Returns the default protocol fee

poolFeeProtocol

Returns the effective protocol fee for a specific pool

Events

PoolCreated

Emitted when a pool is created

Parameters:

TickSpacingEnabled

Emitted when a new tick spacing is enabled for pool creation via the factory

Parameters:

SetFeeProtocol

Emitted when the default protocol fee is changed

Parameters:

SetPoolFeeProtocol

Emitted when a pool-specific protocol fee is changed

Parameters:

FeeAdjustment

Emitted when a pool’s swap fee is changed

FeeCollectorChanged

Emitted when the fee collector address is changed