ISeawaterExecutorAdminExposed

Git Source

contains just the admin functions that are exposed directly

Functions

createPoolD650E2D0

initialises a new pool. only usable by the seawater admin

function createPoolD650E2D0(
    address pool,
    uint256 sqrtPriceX96,
    uint32 fee,
    uint8 tickSpacing,
    uint128 maxLiquidityPerTick
) external;

Parameters

NameTypeDescription
pooladdressthe token to create the pool with
sqrtPriceX96uint256the starting price for the pool
feeuint32the fee to use
tickSpacinguint8the spacing for valid liquidity ticks
maxLiquidityPerTickuint128the maximum amount of liquidity allowed in a single tick

collectProtocol7540FA9F

collects protocol fees. only usable by the seawater admin

function collectProtocol7540FA9F(address pool, uint128 amount0, uint128 amount1, address recipient)
    external
    returns (uint128, uint128);

Parameters

NameTypeDescription
pooladdressthe pool to collect fees for
amount0uint128the maximum amount of token0 fees to collect
amount1uint128the maximum amount of token1 fees to collect
recipientaddressof the funds that're earned

Returns

NameTypeDescription
<none>uint128the amount of token0 and token1 fees collected
<none>uint128

feesOwed22F28DBD

feesOwed to a position ID given.

function feesOwed22F28DBD(address pool, uint256 id) external returns (uint128, uint128);

Parameters

NameTypeDescription
pooladdressto get the fees owed for
iduint256of the position to check for

Returns

NameTypeDescription
<none>uint128the amount of token0 and token1 to get in return
<none>uint128

sqrtPriceX967B8F5FC5

gets the current sqrt price of the pool

function sqrtPriceX967B8F5FC5(address pool) external returns (uint256);

Parameters

NameTypeDescription
pooladdressto get from

Returns

NameTypeDescription
<none>uint256the current sqrtPriceX96 for the pool

curTick181C6FD9

gets the currently used tick of the pool

function curTick181C6FD9(address pool) external returns (int32);

Parameters

NameTypeDescription
pooladdressto get from

Returns

NameTypeDescription
<none>int32the current active tick in the pool

tickSpacing653FE28F

gets the tick spacing of the pool

function tickSpacing653FE28F(address pool) external returns (uint8);

Parameters

NameTypeDescription
pooladdressto get from

Returns

NameTypeDescription
<none>uint8the tick spacing of the pool

feeBB3CF608

gets the fee for a specific pool

function feeBB3CF608(address pool) external returns (uint32);

Parameters

NameTypeDescription
pooladdressto get the fee for

Returns

NameTypeDescription
<none>uint32the fee for the pool

feeGrowthGlobal038B5665B

gets the fee growth for token 0

function feeGrowthGlobal038B5665B(address pool) external returns (uint256);

Parameters

NameTypeDescription
pooladdressto get from

Returns

NameTypeDescription
<none>uint256the fee growth for the other token

feeGrowthGlobal1A33A5A1B

gets the fee growth for token 1

function feeGrowthGlobal1A33A5A1B(address pool) external returns (uint256);

Parameters

NameTypeDescription
pooladdressto get from

Returns

NameTypeDescription
<none>uint256the fee growth for fUSDC

enablePool579DA658

enables or disables a pool

function enablePool579DA658(address pool, bool enabled) external;

Parameters

NameTypeDescription
pooladdressthe pool to enable or disable
enabledbooltrue to enable to pool, false to disable it

authoriseEnabler5B17C274

authorise an address to create and enable pools on its own

function authoriseEnabler5B17C274(address enabler, bool enabled) external;

Parameters

NameTypeDescription
enableraddress
enabledboolto set their status

setSqrtPriceFF4DB98C

set the sqrt price for a pool in the event of misconfiguration.

function setSqrtPriceFF4DB98C(address pool, uint256 price) external;

Parameters

NameTypeDescription
pooladdressto set
priceuint256to use as the starting place

updateNftManager9BDF41F6

set the NFT manager.

function updateNftManager9BDF41F6(address manager) external;

Parameters

NameTypeDescription
manageraddressaddress to set to in its new form

updateEmergencyCouncil7D0C1C58

updateEmergencyCouncil to a new address.

function updateEmergencyCouncil7D0C1C58(address newCouncil) external;

Parameters

NameTypeDescription
newCounciladdressto set the emergency council to