Skip to main content

CoreRef

defines some modifiers and utilities around interacting with Core

Functions

constructor

function constructor(
address coreAddress
) internal

Parameters

NameTypeDescription
coreAddressaddress

_initialize

function _initialize(
address
) internal

Parameters

NameTypeDescription
``address

setContractAdminRole

function setContractAdminRole(
bytes32 newContractAdminRole
) external

sets a new admin role for this contract

Parameters

NameTypeDescription
newContractAdminRolebytes32

isContractAdmin

function isContractAdmin(
address _admin
) public returns (bool)

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

Parameters

NameTypeDescription
_adminaddress

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 ICoreICore implementation address

fei

function fei() public returns (contract IFei)

address of the Fei contract referenced by Core

Return Values

NameTypeDescription
[0]contract IFeiIFei implementation address

tribe

function tribe() public returns (contract IERC20)

address of the Tribe contract referenced by Core

Return Values

NameTypeDescription
[0]contract IERC20IERC20 implementation address

feiBalance

function feiBalance() public returns (uint256)

fei balance of contract

Return Values

NameTypeDescription
[0]uint256fei amount held

tribeBalance

function tribeBalance() public returns (uint256)

tribe balance of contract

Return Values

NameTypeDescription
[0]uint256tribe amount held

_burnFeiHeld

function _burnFeiHeld() internal

_mintFei

function _mintFei(
address to,
uint256 amount
) internal

Parameters

NameTypeDescription
toaddress
amountuint256

_setContractAdminRole

function _setContractAdminRole(
bytes32 newContractAdminRole
) internal

Parameters

NameTypeDescription
newContractAdminRolebytes32