LiquidityGauge
When an LP token is whitelisted on LendingLedger
, a LiquidityGauge
wrapper is automatically created. This simple wrapper calls sync_ledger
in the _afterTokenTransfer
hook to ensure eligible LP positions are continuously tracked by the protocol.
Depositing
To deposit LP tokens into a wrapper, call the depositUnderlying(uint256 _amount)
method. The wrapper must be approved to spend the underlying token.
ethers.js
foundry
Withdrawing
To withdraw LP tokens from a wrapper, call the withdrawUnderlying(uint256 _amount)
method.
ethers.js
foundry
Last updated