OracleAdapter

Git Source

Inherits: IOracleAdapter

Functions

_scale

Scales amount by factor

function _scale(uint256 amount, int8 factor) internal pure returns (uint256);

_revertIfTargetInvalid

Revert if target is zero or after block.timestamp

function _revertIfTargetInvalid(uint256 target) internal view;

_revertIfPriceInvalid

Revert if price is zero or negative

function _revertIfPriceInvalid(int256 price) internal pure;

_revertIfTokensAreSame

Revert if tokenA has same address as tokenB

function _revertIfTokensAreSame(address tokenA, address tokenB) internal pure;

_revertIfZeroAddress

Revert if tokenA or tokenB are null addresses

function _revertIfZeroAddress(address tokenA, address tokenB) internal pure;