SampleMath
State Variables
OFFSET_ORACLE_LENGTH
uint256 internal constant OFFSET_ORACLE_LENGTH = 0;OFFSET_CUMULATIVE_ID
uint256 internal constant OFFSET_CUMULATIVE_ID = 16;OFFSET_CUMULATIVE_VOLATILITY
uint256 internal constant OFFSET_CUMULATIVE_VOLATILITY = 80;OFFSET_CUMULATIVE_BIN_CROSSED
uint256 internal constant OFFSET_CUMULATIVE_BIN_CROSSED = 144;OFFSET_SAMPLE_LIFETIME
uint256 internal constant OFFSET_SAMPLE_LIFETIME = 208;OFFSET_SAMPLE_CREATION
Functions
encode
Name
Type
Description
Name
Type
Description
getOracleLength
Name
Type
Description
Name
Type
Description
getCumulativeId
Name
Type
Description
Name
Type
Description
getCumulativeVolatility
Name
Type
Description
Name
Type
Description
getCumulativeBinCrossed
Name
Type
Description
Name
Type
Description
getSampleLifetime
Name
Type
Description
Name
Type
Description
getSampleCreation
Name
Type
Description
Name
Type
Description
getSampleLastUpdate
Name
Type
Description
Name
Type
Description
getWeightedAverage
Name
Type
Description
Name
Type
Description
update
Name
Type
Description
Name
Type
Description
Last updated