Skip to main content

Fei

Functions

constructor

function constructor(
address core
) public

Fei token constructor

Parameters

NameTypeDescription
coreaddressFei Core address to reference

setIncentiveContract

function setIncentiveContract(
address account,
address incentive
) external

Parameters

NameTypeDescription
accountaddressthe account to incentivize
incentiveaddressthe associated incentive contract

mint

function mint(
address account,
uint256 amount
) external

mint FEI tokens

Parameters

NameTypeDescription
accountaddressthe account to mint to
amountuint256the amount to mint

burn

function burn(
uint256 amount
) public

burn FEI tokens from caller

Parameters

NameTypeDescription
amountuint256the amount to burn

burnFrom

function burnFrom(
address account,
uint256 amount
) public

burn FEI tokens from specified account

Parameters

NameTypeDescription
accountaddressthe account to burn from
amountuint256the amount to burn

_transfer

function _transfer(
address sender,
address recipient,
uint256 amount
) internal

Parameters

NameTypeDescription
senderaddress
recipientaddress
amountuint256

_checkAndApplyIncentives

function _checkAndApplyIncentives(
address sender,
address recipient,
uint256 amount
) internal

Parameters

NameTypeDescription
senderaddress
recipientaddress
amountuint256

permit

function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external

permit spending of FEI

Parameters

NameTypeDescription
owneraddressthe FEI holder
spenderaddressthe approved operator
valueuint256the amount approved
deadlineuint256the deadline after which the approval is no longer valid
vuint8
rbytes32
sbytes32