Constants

MAX_PROTOCOL_FEE_RATIO_D3

uint8 constant MAX_PROTOCOL_FEE_RATIO_D3 = 0.25e3;

MAX_PROTOCOL_LENDING_FEE_RATE_D18

uint256 constant MAX_PROTOCOL_LENDING_FEE_RATE_D18 = 0.02e18;

MAX_POOL_FEE_D18

uint64 constant MAX_POOL_FEE_D18 = 0.5e18;

MIN_LOOKBACK

uint64 constant MIN_LOOKBACK = 30 minutes;

MAX_TICK_SPACING

uint64 constant MAX_TICK_SPACING = 10_000;

NUMBER_OF_KINDS

uint8 constant NUMBER_OF_KINDS = 4;

NUMBER_OF_KINDS_32

int32 constant NUMBER_OF_KINDS_32 = int32(int8(NUMBER_OF_KINDS));

MAX_TICK

uint256 constant MAX_TICK = 322_378;

MAX_TICK_32

int32 constant MAX_TICK_32 = int32(int256(MAX_TICK));

MIN_TICK_32

int32 constant MIN_TICK_32 = int32(-int256(MAX_TICK));

MAX_BINS_TO_MERGE

uint256 constant MAX_BINS_TO_MERGE = 3;

MINIMUM_LIQUIDITY

uint128 constant MINIMUM_LIQUIDITY = 1e8;

MERGED_LP_BALANCE_ADDRESS

address constant MERGED_LP_BALANCE_ADDRESS = address(0);

MERGED_LP_BALANCE_SUBACCOUNT

uint256 constant MERGED_LP_BALANCE_SUBACCOUNT = 0;

ONE

uint128 constant ONE = 1e18;

ONE_SQUARED

uint128 constant ONE_SQUARED = 1e36;

INT256_ONE

int256 constant INT256_ONE = 1e18;

ONE_D8

uint256 constant ONE_D8 = 1e8;

ONE_D3

uint256 constant ONE_D3 = 1e3;

INT_ONE_D8

int40 constant INT_ONE_D8 = 1e8;

HALF_TICK_D8

int40 constant HALF_TICK_D8 = 0.5e8;

DEFAULT_DECIMALS

uint8 constant DEFAULT_DECIMALS = 18;

DEFAULT_SCALE

uint256 constant DEFAULT_SCALE = 1;

EMPTY_PRICE_BREAKS

bytes constant EMPTY_PRICE_BREAKS = hex"010000000000000000000000";

Last updated