StockLendingPool on testnet.
Data
Functions
Checks inside rescue
- Guard active, caller is the borrower’s executor,
amount > 0. amount ≤ maxPerRescue(OverCap), cooldown passed (Cooldown).usedBps ≥ triggerBps, computed from the pool’s oracle,getAccountSnapshotand the liquidation threshold (NotAtRisk).- Transfer from the borrower, repay, and revert with
VenusError(code)on any non-zero Venus code. - Record the rescue with used limit before and after.
Events and errors
Events:GuardSet, GuardCancelled, Rescued. Errors: BadThresholds, ZeroAmount, NotExecutor, GuardInactive, OverCap(cap), Cooldown(until), NotAtRisk(usedBps, triggerBps), VenusError(code).