Git Source
Inherits: ERC20
address public hook
constructor(string memory _name, string memory _symbol, address _hook) ERC20(_name, _symbol, 18);
Restricts function access to the hook only.
modifier hookOnly() ;
function _hookOnly() internal view;
Mints LP tokens. Can only be called by the authorized hook.
Burns LP tokens. Can only be called by the authorized hook.
Last updated 4 months ago
Was this helpful?
function mint(address to, uint256 amount) external hookOnly;
function burn(address from, uint256 amount) external hookOnly;
error InvalidCaller(string message);