VolatilityOracleStorage
State Variables
STORAGE_SLOT
bytes32 internal constant STORAGE_SLOT = keccak256("premia.contracts.storage.VolatilityOracle");
PARAM_BITS
uint256 internal constant PARAM_BITS = 51;
PARAM_BITS_MINUS_ONE
uint256 internal constant PARAM_BITS_MINUS_ONE = 50;
PARAM_AMOUNT
uint256 internal constant PARAM_AMOUNT = 5;
START_BIT
uint256 internal constant START_BIT = 204;
Functions
layout
function layout() internal pure returns (Layout storage l);
getParams
Returns the current parameters for token
function getParams(Layout storage l, address token) internal view returns (Update memory);
parseParams
Returns the parsed parameters for the encoded input
function parseParams(bytes32 input) internal pure returns (int256[5] memory params);
formatParams
Returns the encoded parameters for params
function formatParams(int256[5] memory params) internal pure returns (bytes32 result);
Structs
Update
struct Update {
uint256 updatedAt;
bytes32 tau;
bytes32 theta;
bytes32 psi;
bytes32 rho;
}
Params
struct Params {
int256[5] tau;
int256[5] theta;
int256[5] psi;
int256[5] rho;
}
Layout
struct Layout {
mapping(address token => Update) parameters;
UD60x18 riskFreeRate;
}