CoreRef

defines some modifiers and utilities around interacting with Core

Functions

constructor

function constructor(
    address coreAddress
) internal

Parameters

NameTypeDescription

coreAddress

address

_initialize

function _initialize(
    address 
) internal

Parameters

NameTypeDescription

``

address

setContractAdminRole

function setContractAdminRole(
    bytes32 newContractAdminRole
) external

sets a new admin role for this contract

Parameters

NameTypeDescription

newContractAdminRole

bytes32

isContractAdmin

function isContractAdmin(
    address _admin
) public returns (bool)

returns whether a given address has the admin role for this contract

Parameters

NameTypeDescription

_admin

address

pause

function pause() public

set pausable methods to paused

unpause

function unpause() public

set pausable methods to unpaused

core

function core() public returns (contract ICore)

address of the Core contract referenced

Return Values

NameTypeDescription

[0]

contract ICore

ICore implementation address

chi

function chi() public returns (contract IChi)

address of the Chi contract referenced by Core

Return Values

NameTypeDescription

[0]

contract IChi

IChi implementation address

zen

function zen() public returns (contract IERC20)

address of the Zen contract referenced by Core

Return Values

NameTypeDescription

[0]

contract IERC20

IERC20 implementation address

chiBalance

function chiBalance() public returns (uint256)

chi balance of contract

Return Values

NameTypeDescription

[0]

uint256

chi amount held

zenBalance

function zenBalance() public returns (uint256)

zen balance of contract

Return Values

NameTypeDescription

[0]

uint256

zen amount held

_burnChiHeld

function _burnChiHeld() internal

_mintChi

function _mintChi(
    address to,
    uint256 amount
) internal

Parameters

NameTypeDescription

to

address

amount

uint256

_setContractAdminRole

function _setContractAdminRole(
    bytes32 newContractAdminRole
) internal

Parameters

NameTypeDescription

newContractAdminRole

bytes32

Last updated