MintableIncentivizedERC20

Implements mint and burn functions for IncentivizedERC20

constructor

constructor(contract IPool pool, string name, string symbol, uint8 decimals) internal

Constructor.

Parameters

NameTypeDescription

pool

contract IPool

The reference to the main Pool contract

name

string

The name of the token

symbol

string

The symbol of the token

decimals

uint8

The number of decimals of the token

_mint

function _mint(address account, uint128 amount) internal virtual

Mints tokens to an account and apply incentives if defined

Parameters

NameTypeDescription

account

address

The address receiving tokens

amount

uint128

The amount of tokens to mint

_burn

function _burn(address account, uint128 amount) internal virtual

Burns tokens from an account and apply incentives if defined

Parameters

NameTypeDescription

account

address

The account whose tokens are burnt

amount

uint128

The amount of tokens to burn