ICenturionV3FactoryOwnerActions

Last modified:

Git Source

The CenturionDEX V3 Factory facilitates creation of CenturionDEX V3 pools and control over the protocol fees

Stripped down and renamed from: https://github.com/CenturionDEX/centurion-dex-smcs/tree/main/contracts/v3

Functions

owner

Returns the current owner of the factory

Can be changed by the current owner via setOwner

function owner() external view returns (address);

Returns

NameTypeDescription
<none>addressThe address of the factory owner

setOwner

Updates the owner of the factory

Must be called by the current owner

function setOwner(address _owner) external;

Parameters

NameTypeDescription
_owneraddressThe new owner of the factory

enableFeeAmount

Enables a fee amount with the given tickSpacing

Fee amounts may never be removed once enabled

function enableFeeAmount(uint24 fee, int24 tickSpacing) external;

Parameters

NameTypeDescription
feeuint24The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)
tickSpacingint24The spacing between ticks to be enforced for all pools created with the given fee amount

feeAmountTickSpacing

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

A fee amount can never be removed, so this value should be hard coded or cached in the calling context

function feeAmountTickSpacing(uint24 fee) external view returns (int24);

Parameters

NameTypeDescription
feeuint24The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee

Returns

NameTypeDescription
<none>int24The tick spacing