🔒 Lock.sol — Time-locked BTC Deposit
Deposit & Lock
Withdraw After Unlock
📈 Staking — 5% APY
Stake BTC
My Position
Staked—
Pending Rewards—
Actions
⇄ SimpleSwap AMM — BTC ↔ stBTC
BTC → stBTC
stBTC → BTC
Pool BTC: —
Pool stBTC: —
k = —
💧 Liquidity Provision
Add BTC Liquidity
Add stBTC Liquidity
My BTC: —
My stBTC: —
🏦 Vault — ERC-4626 Yield-Bearing vBTC
Total Assets—
Total Shares
Share Price
Your vBTC
Your BTC Value—
Deposit BTC → vBTC
Redeem vBTC → BTC
Inject Yield (Demo)
Increases share price for all vBTC holders
💰 Lending — BTC Collateral → Borrow stBTC
Total Collateral—
Total Debt—
stBTC Liquidity—
Oracle Price1 BTC = 1e8 sats
My Collateral—
My Debt—
Health Factor—
Deposit Collateral (BTC)
Borrow stBTC
Max borrowable: —
Repay stBTC
Withdraw Collateral
⚡ FlashLoan — Single-Tx stBTC Borrowing
Available Liquidity—
Fee0.09% (9 BPS)
Total Fees Earned—
TokenstBTC (satoshis)
Max Single Loan—
Fee Calculator
• Borrow up to — stBTC sats
• Call your contract's
onFlashLoan()• Do arbitrage / liquidation / etc.
• Return amount + fee before tx ends
✓ Trustless · atomic · no collateral