TaskFiDocs

TASKToken.sol

Minimal ERC-20 implementation of the protocol token. The development version mints the full supply to the deployer and stops there — the production launch uses Clanker to bootstrap liquidity in a Uniswap v4 pool on Base.

Inheritance

  • ERC20 — standard token interface.
  • ERC20Burnable — exposes burn(uint) and burnFrom(address,uint).
  • Ownable2Step — safe ownership transfer.

State

NameTypeValue
TOTAL_SUPPLYuint256 (constant)10,000,000,000 × 10¹⁸

Constructor

solidity
constructor() ERC20("TaskFi", "TASK") Ownable(msg.sender) {
    _mint(msg.sender, TOTAL_SUPPLY);
}

Key inherited functions

FunctionNotes
transfer(to, amount)Standard ERC-20 transfer.
burn(amount)Burns from msg.sender.
burnFrom(account, amount)Burns from an allowance.
transferOwnership(newOwner)Two-step; recipient must call acceptOwnership.

Security notes

  • No mint after constructor — supply is fixed.
  • Owner has no special privilege beyond standard Ownable2Step; minting is impossible post-deploy.