Comment on page
CoreRef
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.
CoreUpdate
Referenced Ring Core contract update
type | param | description |
address indexed | _core | new Ring Core |
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;
emits
CoreUpdate
function pause() external;
function unpause() external;
coreref.json
2KB
Code
CoreRef ABI
icoreref.json
1KB
Code
CoreRef Interface ABI
Last modified 2yr ago