Skip to main content

EchidnaTestMintBurn

EchidnaTestMintBurn

testMintZeroBalance

function testMintZeroBalance(uint8 targetAcc) public

Minting 0 tokens should not affect account balance

Parameters

NameTypeDescription
targetAccuint8Account to mint to

testBurnZeroBalance

function testBurnZeroBalance(uint8 targetAcc) public

Burning 0 tokens should not affect account balance

Parameters

NameTypeDescription
targetAccuint8Account to burn from

testMintBalance

function testMintBalance(uint8 targetAcc, uint256 amount) public

Minting tokens must increase the account balance by at least amount

Parameters

NameTypeDescription
targetAccuint8Account to mint to
amountuint256Amount to mint

testBurnBalance

function testBurnBalance(uint8 targetAcc, uint256 amount) public

Burning tokens must decrease the account balance by at least amount

Parameters

NameTypeDescription
targetAccuint8Account to burn from
amountuint256Amount to burn

testMintBalanceRounding

function testMintBalanceRounding(uint8 targetAcc, uint256 amount) public

Minting tokens should not increase the account balance by less than rounding error above amount

Parameters

NameTypeDescription
targetAccuint8Account to mint to
amountuint256Amount to mint

testBurnAllBalanceToZero

function testBurnAllBalanceToZero(uint8 targetAcc) public

A burn of an account balance must result in a zero balance

Parameters

NameTypeDescription
targetAccuint8Account to burn from

testBurnAllBalanceShouldNotRevert

function testBurnAllBalanceShouldNotRevert(uint8 targetAcc) public

You should always be able to burn an account's balance

Parameters

NameTypeDescription
targetAccuint8Account to burn from