ExampleOracleSimple
State Variables
PERIOD
uint256 public constant PERIOD = 24 hours;
pair
IButtonswapPair immutable pair;
token0
address public immutable token0;
token1
address public immutable token1;
price0CumulativeLast
uint256 public price0CumulativeLast;
price1CumulativeLast
uint256 public price1CumulativeLast;
blockTimestampLast
uint32 public blockTimestampLast;
price0Average
uint224 public price0Average;
price1Average
uint224 public price1Average;
Functions
constructor
constructor(address factory, address tokenA, address tokenB);
update
function update() external;
consult
function consult(address token, uint256 amountIn) external view returns (uint256 amountOut);