Comment on page
A reference to Ring Core
CoreRef is an abstract contract which references Core. It defines basic modifiers and utilities useful for contracts referencing Core.
Most of all Ring Protocol contracts implement the CoreRef contract.
The contract defines modifiers of the following types:
- restrict access to certain roles
- conditional execution if a role is held
- restrict access to certain contracts (Rusd, Core, GenesisGroup)
- restrict access to post genesis period
It allows the governor of a currently referenced Core contract to update to a new referenced Core contract
It can read in referenced contract addresses including Core, Rusd, Ring or get token balances.
Referenced Ring Core contract update
function core() external view returns (ICore);
function rusd() external view returns (IRusd);
function ring() external view returns (IERC20);
function rusdBalance() external view returns (uint256);
Returns the amount of RUSD held by this contract
function ringBalance() external view returns (uint256);
Returns the amount of RING held by this contract
function setCore(address core) external;
function pause() external;
function unpause() external;
CoreRef Interface ABI