constructor(address)
public
Name | Type | Description |
---|---|---|
onlyPool
initialize(uint32,int24)
external
Initialize the dataStorage array by writing the first slot. Called once for the lifecycle of the timepoints array
changeFeeConfiguration(struct AdaptiveFee.Configuration)
external
Changes fee configuration for the pool
onlyPool
getSingleTimepoint(uint32,uint32,int24,uint16,uint128)
view external
Returns:
onlyPool
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:
onlyPool
getAverages(uint32,int24,uint16,uint128)
view external
Returns average volatility in the range from time-WINDOW to time
Returns:
onlyPool
write(uint16,uint32,int24,uint128,uint128)
external
Writes an dataStorage timepoint to the array
Returns:
calculateVolumePerLiquidity(uint128,int256,int256)
pure external
Calculates gmean(volume/liquidity) for block
Returns:
window()
pure external
Returns:
onlyPool
getFee(uint32,int24,uint16,uint128)
view external
Calculates fee based on combination of sigmoids
Returns:
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|