Twa
Last updated
Last updated
Update the TWA (Time-Weighted Average) value in the State memory.
Parameters
Name | Type | Description |
---|---|---|
Get the floored TWA value from the State memory.
Parameters
Name | Type | Description |
---|---|---|
Returns
Name | Type | Description |
---|---|---|
Get the TWA value from the State memory, considering a lookback period.
Parameters
Returns
Get the floored TWA value from the State memory, based on the lookback period.
Parameters
Returns
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
self
IMaverickV2Pool.State
The State memory to update.
value
int256
The new value to set.
lookback
uint256
The lookback period to use for calculating the TWA.
self
IMaverickV2Pool.State
The State memory to read from.
<none>
int32
The floored TWA value as an int32.
self
IMaverickV2Pool.State
The State memory to read from.
lookback
uint256
The lookback period to use for calculating the TWA.
<none>
int256
The TWA value as an int256.
self
IMaverickV2Pool.State
The State memory to read from.
lookback
uint256
The lookback period to use for calculating the TWA.
<none>
int32
The floored TWA value as an int32.