Skip to main content
Loan Guard lets you put your stocks to work as collateral without watching the screen all night. If the price drops, the agent repays part of your loan from your own safety buffer before you get near liquidation.
Your stock loan: debt, borrow limit, liquidation limit and how much is used

Your stock loan: debt, borrow limit, liquidation limit and how much is used

How it works

1

Borrow on Venus

Supply a stock token Venus accepts as collateral and borrow USDT. The app does buy → supply → borrow → guard in one batch.
2

Set a guard

On the LoanGuard contract you choose a trigger and a target (as a share of your liquidation limit), a cap per rescue and a cooldown. Defaults in the app: trigger 80%, target 60%.
3

Approve a buffer

You approve LoanGuard for a safety buffer in USDT. The buffer stays in your wallet.
4

The agent watches

Every 5 minutes the agent reads each guarded position.
5

Rescue

Past the trigger, it asks LoanGuard to repay just enough to reach the target, capped. The contract re-checks the position on-chain first, then calls repayBorrowBehalf with USDT taken straight from your wallet.
How your guard works, and every rescue the agent made

How your guard works, and every rescue the agent made

The number that matters: used limit

10000 bps (100%) means liquidatable. The contract computes it from the pool’s own oracle and liquidation thresholds, not from anything the agent sends.

Safety properties

Only past your trigger

rescue reverts with NotAtRisk below the trigger.

From your own buffer

Money moves from your wallet to Venus. Nothing passes through the agent.

Capped

At most maxPerRescue per rescue, at most once per cooldown.
A leaked agent key can only repay the borrower’s own debt, capped. It cannot borrow, withdraw collateral or move funds anywhere else.

Supported collateral

Venus accepts four tokenized stocks on BNB Chain, all from bStocks (checked on-chain 2026-09-28):
Venus has no stock markets on testnet. There, StockLendingPool stands in with the same interface and the same limits over the four test stocks, and real liquidations. A live testnet rescue repaid 89.71 tUSDT and moved a position from 85.7% of its limit back to exactly 60%. Loan Guard is testnet-only for now.