Skip to main content
Verified on BscScan. It speaks the Venus comptroller / vToken interface, so the same contract points at the Venus core pool on mainnet or the Venus-compatible StockLendingPool on testnet.

Data

Functions

Checks inside rescue

  1. Guard active, caller is the borrower’s executor, amount > 0.
  2. amount ≤ maxPerRescue (OverCap), cooldown passed (Cooldown).
  3. usedBps ≥ triggerBps, computed from the pool’s oracle, getAccountSnapshot and the liquidation threshold (NotAtRisk).
  4. Transfer from the borrower, repay, and revert with VenusError(code) on any non-zero Venus code.
  5. 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).