LiquidityManager
Code
Events
AddLiquidity
Emitted when liquidity is added to a lendgine using this position manager.
RemoveLiquidity
Emitted when liquidity is removed from a lendgine using this position manager.
Collect
Emitted when interest is collect from a position.
Errors
LivelinessError
Occurs when a transaction is processed later than the deadline specified.
AmountError
Occurs when output amounts aren't sufficient according to the specified minimums.
ValidationError
Occurs when a callback invocation is not valid because it is not called by a lendgine deployed by the PMMP factory.
CollectError
Occurs when the amount of interest collect from the lendgine is not equal to the amount specified.
Read-only functions
factory
Returns the address of the PMMP factory this router is connected to.
weth
Returns the address of the Wrapped Ether contract.
positions
Returns the makeup of a position.
State-changing functions
addLiquidity
Adds liquidity to a lendgine with safety checks and records the position.
removeLiquidity
Removes liquidity from a lendgine with safety checks and updates the position.
collect
Collects interest from a position with safety checks and accrues interest before collecting.
Last updated