Constants

Git Source

MAX_RAD

Max uint256 value that a RAD can represent without overflowing

uint256 constant MAX_RAD = type(uint256).max / RAY;

RAD

Uint256 representation of 1 RAD

uint256 constant RAD = 10 ** 45;

RAY

Uint256 representation of 1 RAY

uint256 constant RAY = 10 ** 27;

WAD

Uint256 representation of 1 WAD

uint256 constant WAD = 10 ** 18;

YEAR

Uint256 representation of 1 year in seconds

uint256 constant YEAR = 365 days;

HOUR

Uint256 representation of 1 hour in seconds

uint256 constant HOUR = 3600;