Skip to content
Demo lab

Demo lab

Build a test position against MockPool in three steps so you can watch a protection fire. Gas is testnet OKB from the X Layer faucet.

Connect a wallet on X Layer testnet
1 · Mint mock tokens
MockERC20.mint is public on testnet. Mint collateral to supply and stablecoin to hold as buffer.

Balance:

Balance:

2 · Supply collateral
approve + MockPool.supply(asset, amount, you, 0)
Uses the amount from step 1.
3 · Borrow stablecoin
MockPool.borrow(asset, amount, 2, 0, you) — push the health factor down toward a trigger.
Resulting health factor
Straight from MockPool.getUserAccountData.
HEALTH FACTOR1.002.00+
No debt
Collateral
Debt
About price dips

Moving the oracle price (MockPool.setPrice) is owner-only; our demo script drives the dip and the Sentinel reacts. Borrow close to the limit here, enroll, and watch the history page when the script runs.