ISeawaterExecutorAdminExposed
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
Name | Type | Description |
---|---|---|
pool | address | the token to create the pool with |
sqrtPriceX96 | uint256 | the starting price for the pool |
fee | uint32 | the fee to use |
tickSpacing | uint8 | the spacing for valid liquidity ticks |
maxLiquidityPerTick | uint128 | the 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
Name | Type | Description |
---|---|---|
pool | address | the pool to collect fees for |
amount0 | uint128 | the maximum amount of token0 fees to collect |
amount1 | uint128 | the maximum amount of token1 fees to collect |
recipient | address | of the funds that're earned |
Returns
Name | Type | Description |
---|---|---|
<none> | uint128 | the 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
Name | Type | Description |
---|---|---|
pool | address | to get the fees owed for |
id | uint256 | of the position to check for |
Returns
Name | Type | Description |
---|---|---|
<none> | uint128 | the 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
Name | Type | Description |
---|---|---|
pool | address | to get from |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | the current sqrtPriceX96 for the pool |
curTick181C6FD9
gets the currently used tick of the pool
function curTick181C6FD9(address pool) external returns (int32);
Parameters
Name | Type | Description |
---|---|---|
pool | address | to get from |
Returns
Name | Type | Description |
---|---|---|
<none> | int32 | the current active tick in the pool |
tickSpacing653FE28F
gets the tick spacing of the pool
function tickSpacing653FE28F(address pool) external returns (uint8);
Parameters
Name | Type | Description |
---|---|---|
pool | address | to get from |
Returns
Name | Type | Description |
---|---|---|
<none> | uint8 | the tick spacing of the pool |
feeBB3CF608
gets the fee for a specific pool
function feeBB3CF608(address pool) external returns (uint32);
Parameters
Name | Type | Description |
---|---|---|
pool | address | to get the fee for |
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | the fee for the pool |
feeGrowthGlobal038B5665B
gets the fee growth for token 0
function feeGrowthGlobal038B5665B(address pool) external returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
pool | address | to get from |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | the fee growth for the other token |
feeGrowthGlobal1A33A5A1B
gets the fee growth for token 1
function feeGrowthGlobal1A33A5A1B(address pool) external returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
pool | address | to get from |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | the fee growth for fUSDC |
enablePool579DA658
enables or disables a pool
function enablePool579DA658(address pool, bool enabled) external;
Parameters
Name | Type | Description |
---|---|---|
pool | address | the pool to enable or disable |
enabled | bool | true 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
Name | Type | Description |
---|---|---|
enabler | address | |
enabled | bool | to set their status |
setSqrtPriceFF4DB98C
set the sqrt price for a pool in the event of misconfiguration.
function setSqrtPriceFF4DB98C(address pool, uint256 price) external;
Parameters
Name | Type | Description |
---|---|---|
pool | address | to set |
price | uint256 | to use as the starting place |
updateNftManager9BDF41F6
set the NFT manager.
function updateNftManager9BDF41F6(address manager) external;
Parameters
Name | Type | Description |
---|---|---|
manager | address | address to set to in its new form |
updateSeawaterAdminD25D364D
set the new admin.
function updateSeawaterAdminD25D364D(address operator) external;
Parameters
Name | Type | Description |
---|---|---|
operator | address | to replace the existing operator with |
updateEmergencyCouncil7D0C1C58
updateEmergencyCouncil to a new address.
function updateEmergencyCouncil7D0C1C58(address newCouncil) external;
Parameters
Name | Type | Description |
---|---|---|
newCouncil | address | to set the emergency council to |