IDataStorageOperator

IDataStorageOperator

Events

FeeConfiguration

FeeConfiguration(struct AdaptiveFee.Configuration)

Functions

timepoints

timepoints(uint256) view external

Returns data belonging to a certain timepoint

Returns:

initialize

initialize(uint32,int24) external

Initialize the dataStorage array by writing the first slot. Called once for the lifecycle of the timepoints array

getSingleTimepoint

getSingleTimepoint(uint32,uint32,int24,uint16,uint128) view external

Returns:

getTimepoints

getTimepoints(uint32,uint32[],int24,uint16,uint128) view external

Returns the accumulator values as of each time seconds ago from the given time in the array of `secondsAgos`

Returns:

getAverages

getAverages(uint32,int24,uint16,uint128) view external

Returns average volatility in the range from time-WINDOW to time

Returns:

write

write(uint16,uint32,int24,uint128,uint128) external

Writes an dataStorage timepoint to the array

Returns:

changeFeeConfiguration

changeFeeConfiguration(struct AdaptiveFee.Configuration) external

Changes fee configuration for the pool

calculateVolumePerLiquidity

calculateVolumePerLiquidity(uint128,int256,int256) pure external

Calculates gmean(volume/liquidity) for block

Returns:

window

window() view external

Returns:

getFee

getFee(uint32,int24,uint16,uint128) view external

Calculates fee based on combination of sigmoids

Returns:


IDataStorageOperator

Events

FeeConfiguration

FeeConfiguration(struct AdaptiveFee.Configuration)

Functions

timepoints

timepoints(uint256) view external

Returns data belonging to a certain timepoint

Returns:

initialize

initialize(uint32,int24) external

Initialize the dataStorage array by writing the first slot. Called once for the lifecycle of the timepoints array

getSingleTimepoint

getSingleTimepoint(uint32,uint32,int24,uint16,uint128) view external

Returns:

getTimepoints

getTimepoints(uint32,uint32[],int24,uint16,uint128) view external

Returns the accumulator values as of each time seconds ago from the given time in the array of `secondsAgos`

Returns:

getAverages

getAverages(uint32,int24,uint16,uint128) view external

Returns average volatility in the range from time-WINDOW to time

Returns:

write

write(uint16,uint32,int24,uint128,uint128) external

Writes an dataStorage timepoint to the array

Returns:

changeFeeConfiguration

changeFeeConfiguration(struct AdaptiveFee.Configuration) external

Changes fee configuration for the pool

calculateVolumePerLiquidity

calculateVolumePerLiquidity(uint128,int256,int256) pure external

Calculates gmean(volume/liquidity) for block

Returns:

window

window() view external

Returns:

getFee

getFee(uint32,int24,uint16,uint128) view external

Calculates fee based on combination of sigmoids

Returns:


IDataStorageOperator

Events

FeeConfiguration

FeeConfiguration(struct AdaptiveFee.Configuration)

Functions

timepoints

timepoints(uint256) view external

Returns data belonging to a certain timepoint

Returns:

initialize

initialize(uint32,int24) external

Initialize the dataStorage array by writing the first slot. Called once for the lifecycle of the timepoints array

getSingleTimepoint

getSingleTimepoint(uint32,uint32,int24,uint16,uint128) view external

Returns:

getTimepoints

getTimepoints(uint32,uint32[],int24,uint16,uint128) view external

Returns the accumulator values as of each time seconds ago from the given time in the array of `secondsAgos`

Returns:

getAverages

getAverages(uint32,int24,uint16,uint128) view external

Returns average volatility in the range from time-WINDOW to time

Returns:

write

write(uint16,uint32,int24,uint128,uint128) external

Writes an dataStorage timepoint to the array

Returns:

changeFeeConfiguration

changeFeeConfiguration(struct AdaptiveFee.Configuration) external

Changes fee configuration for the pool

calculateVolumePerLiquidity

calculateVolumePerLiquidity(uint128,int256,int256) pure external

Calculates gmean(volume/liquidity) for block

Returns:

window

window() view external

Returns:

getFee

getFee(uint32,int24,uint16,uint128) view external

Calculates fee based on combination of sigmoids

Returns:


IDataStorageOperator

Events

FeeConfiguration

FeeConfiguration(struct AdaptiveFee.Configuration)

Functions

timepoints

timepoints(uint256) view external

Returns data belonging to a certain timepoint

Returns:

initialize

initialize(uint32,int24) external

Initialize the dataStorage array by writing the first slot. Called once for the lifecycle of the timepoints array

getSingleTimepoint

getSingleTimepoint(uint32,uint32,int24,uint16,uint128) view external

Returns:

getTimepoints

getTimepoints(uint32,uint32[],int24,uint16,uint128) view external

Returns the accumulator values as of each time seconds ago from the given time in the array of `secondsAgos`

Returns:

getAverages

getAverages(uint32,int24,uint16,uint128) view external

Returns average volatility in the range from time-WINDOW to time

Returns:

write

write(uint16,uint32,int24,uint128,uint128) external

Writes an dataStorage timepoint to the array

Returns:

changeFeeConfiguration

changeFeeConfiguration(struct AdaptiveFee.Configuration) external

Changes fee configuration for the pool

calculateVolumePerLiquidity

calculateVolumePerLiquidity(uint128,int256,int256) pure external

Calculates gmean(volume/liquidity) for block

Returns:

window

window() view external

Returns:

getFee

getFee(uint32,int24,uint16,uint128) view external

Calculates fee based on combination of sigmoids

Returns: