Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MarketCalendarLib

Git Source

Constants

SECONDS_PER_DAY

uint256 internal constant SECONDS_PER_DAY = 86_400

SECONDS_PER_HOUR

uint256 internal constant SECONDS_PER_HOUR = 3600

Functions

isFadWindow

function isFadWindow(
    uint256 timestamp,
    bool todayOverride,
    bool tomorrowOverride,
    uint256 fadRunwaySeconds
) internal pure returns (bool);

isOracleFrozen

function isOracleFrozen(
    uint256 timestamp,
    bool todayOverride
) internal pure returns (bool);

_dayAndHour

function _dayAndHour(
    uint256 timestamp
) private pure returns (uint256 dayOfWeek, uint256 hourOfDay);