defines some utilities around interacting with Uniswap
the uniswap pair should be CHI and another asset
function constructor( address _core, address _pair, address _oracle, address _backupOracle ) internal
UniRef constructor
_core
address
Chi Core to reference
_pair
Uniswap pair to reference
_oracle
oracle to reference
_backupOracle
backup oracle to reference
set the new pair contract
newPair
the new pair
pair reserves with chi listed first
Last updated 2 years ago
function setPair( address newPair ) external
function getReserves() public returns (uint256 chiReserves, uint256 tokenReserves)
function _setupPair( address newPair ) internal
function _token() internal returns (address)