Pair
The pair smart contract is abstract and inherited by lendgine. They are separated for readability.
Last updated
The pair smart contract is abstract and inherited by lendgine. They are separated for readability.
Last updated
Emitted when liquidity is minted in the pair.
Emitted when liquidity is burned in the pair.
Emitted when a swap occurs in the pair.
Occurs when an account takes an action and the resulting pair balances don't satisfy the invariant.
Occurs when the output of an actions is 0.
Returns the balance of the token0 reserves held in the automated market maker.
Returns the balance of the token1 reserves held in the automated market maker.
Returns the total amount of liquidity currently held in the automated market maker.
Implements the capped power invariant and returns true if the invariant is satisfied by the parameters.
Swaps tokens. Sends the amounts out to the to
address. A callback is called and data
is passed back.
Mints liquidity. A calback is called and data is passed back.
Burns liquidity.