PoolToken

Git Source

Inherits: ERC20, Ownable

State Variables

_name

string internal _name;

_symbol

string internal _symbol;

_decimals

uint8 internal _decimals;

poolAddress

address poolAddress;

Functions

_checkCallerIsPool

function _checkCallerIsPool() internal view;

constructor

constructor(string memory name_, string memory symbol_, uint8 decimals_, address owner_);

name

function name() public view virtual override returns (string memory);

symbol

function symbol() public view virtual override returns (string memory);

decimals

function decimals() public view virtual override returns (uint8);

mint

function mint(address to_, uint256 amount_) public;

burn

function burn(address from_, uint256 amount_) public;

setPool

function setPool(address poolAddress_) public onlyOwner;

Events

PoolAddressSet

event PoolAddressSet(address newPoolAddress);

Errors

Token__CallerIsNotPool

error Token__CallerIsNotPool();

Token__PoolAddressCannotBeZero

error Token__PoolAddressCannotBeZero();