For the complete documentation index, see llms.txt. This page is also available as Markdown.

LPToken

Git Source

Inherits: ERC20

State Variables

hook

address public hook

Functions

constructor

constructor(string memory _name, string memory _symbol, address _hook) ERC20(_name, _symbol, 18);

hookOnly

Restricts function access to the hook only.

modifier hookOnly() ;

_hookOnly

function _hookOnly() internal view;

mint

Mints LP tokens. Can only be called by the authorized hook.

burn

Burns LP tokens. Can only be called by the authorized hook.

Errors

InvalidCaller

Last updated

Was this helpful?