Component: Falcon Finance token
Description
The Falcon Finance (FF) token is implemented using the immutable OpenZeppelin ERC20↗ contract with ERC20Permit↗ support. This token uses 18 default decimals. The total supply is fixed at 10,000,000,000 FF tokens and cannot be increased. The FF token is supposed to be deployable to any EVM-compatible chain.
Invariants
The total supply must equal the sum of all account balances.
For all accounts,
balanceOf(account) >= 0.Allowances do not grant more transfer rights than intended;
transferFrommust check allowance and deduct it correctly.The
Transferevent is emitted on every balance change;Approvalis emitted on allowance changes.
Test coverage
Cases covered
Deployment:
name == 'Falcon Finance',symbol == 'FF',decimals == 18,totalSupply == 10,000,000,000 FF, andbalanceOf(recipient) == 10,000,000,000 FF.Both
transferandtransferFromsucceed and update balances.When allowance is insufficient,
transferFromshould revert.The
approveallowance increases correctly.approvewith zero amount succeeds.transferwith zero amount succeeds.When
balance < amount,transfershould revert.