ESEC
loading scene  dispatch console
pre-positioned liquidity for cascade capture
PRE-POSITIONED LIQUIDITY FOR SOLANA CASCADE CAPTURE

The vault that
profits from
chaos.

ESEC computes every leveraged position's liquidation price across Drift, Marginfi, and Kamino. Concentrated LP pre-positions at the cluster bins. When forced selling hits, your depth is already there. Recovery in 30-180s. Stop-loss on chain.

v0.3.0Drift  /  Marginfi   /  Kamino   /  Devnet liveDocs
STATUScascade-vault on devnet, audit pendingdrift / marginfi / kamino / jupiter lend
HOW

cluster found. LP deployed. recovery captured.

01
scan(positions)

every slot, cascade scans every leveraged position on drift, marginfi, kamino, jupiter lend. liquidation prices derive deterministically from collateral + maintenance margin. cluster map updates in real time.

02
deploy(at cluster)

when spot price approaches a $1M+ cluster, vault atomically deploys concentrated LP at the cluster bin via jito bundle to raydium / orca / meteora. our depth is there before the cascade fires.

03
exit(recovery)

forced selling hits the cluster, our LP absorbs the flow, price rebounds 30-180s later. vault exits with fees + price improvement. on-chain stop-loss bounds the downside if recovery never comes.

NUMBERS

pre-position. capture. exit. all on-chain.

managed off-chain monitor for cluster mapping. solana on-chain for state transitions, deposits, withdrawals, stop-loss. permissionless cranks ensure exits even if the monitor goes dark.

A single orange ESEC mechanical keycap floating against deep black
400ms
scan → deploy
1 slot atomic via jito
30-180s
avg recovery cycle
deploy to exit window
4
protocols scanned
drift / marginfi / kamino / juplend
5%
on-chain stop-loss
permissionless crank
100%
self-custody
PDA-owned vault, LP tokens to you
0.3
sdk
@esec/sdk, typed end-to-end
$1M
min cluster size
forced selling threshold
MIT
license
open source, audit-gated
A finger hovering over a glowing ESEC key in darkness
THE MOMENT

they get liquidated while
you catch the rebound.

every cascade has the same shape. leverage builds at a price. spot crosses it. forced selling overshoots. price rebounds in seconds. retail can't react fast enough. esec vault is already there. your depth is the depth.

FLOW

from idle vault to captured cascade, in four states.

ESEC key starting to glow
step 01, idle
capital deposited. vault waits.

depositors hold LP tokens; assets sit in the vault PDA. off-chain monitor maintains a live cluster map. nothing deployed until a cluster signal fires.

ESEC key with translucent countdown ring
step 02, deploy
spot approaches cluster. LP deploys.

monitor signals when spot is within 2% of a $1M+ cluster. vault atomically deploys concentrated LP at the cluster bin to raydium / orca / meteora.

ESEC key fully engaged at peak brightness
step 03a, recover
cascade absorbed. price rebounds. exit.

forced sellers hit our LP. price overshoots, then recovers in 30-180s. vault exits with LP fees + price improvement. performance fee to fee_treasury. receipt card emits.

ESEC key being pressed with motion blur
step 03b, stop-loss
recovery fails. permissionless exit.

if spot drops 5% below deploy, anyone can call the stop-loss crank. vault unwinds fast. bounded loss recorded on-chain. capital returns to idle, ready for the next cluster.

USE CASES

where idle capital becomes harvest capital.

A single orange ESEC key with a countdown ring on black
/ stable parking
park usdc, harvest cascades while you sleep.
deposit usdc. vault deploys at known liquidation clusters, captures the rebound, exits. you wake up to receipt cards instead of a static yield number.
Three ESEC keys floating, only one glows orange, routing
/ yield router
allocate a slice of your super-vault to cascade LP.
kamino-style yield routers can CPI deposit / withdraw against cascade-vault. one strategy among many; rebalance periodically based on observed cycle APY.
A glowing ESEC key hovering above a robotic hand
/ agent treasury
AI agent parks idle capital between trades.
ai16z-style agent treasuries surplus stable between signals. esec vault captures cycle yield on idle capital; deallocate-on-signal returns capital in one slot.
COMPARE

vs. how people capture liquidation flow today.

drift insurance fundliquidation botsesec vault
rolepassive backstopactive arb (bonus)active pre-position (rebound)
setupdeposit usdcrun a bot + infradeposit sol / usdc
capital lockupalways deployednone (bots)idle until cluster signal
yield profilesmooth ~15% APYspiky, bot-skill-dependentspiky, harvest cascades
downside boundprotocol-wide drawdownself-managed riskon-chain 5% stop-loss
custodynon-custodialself-custodiednon-custodial
composableno (drift-only)noCPI from any anchor program
Q & A

things people ask first.

does esec vault hold my funds?
no. capital lives in a PDA-owned token account whose authority is the on-chain program. withdraws are authorized by your LP token holdings. no off-chain key controls the vault.
what if the off-chain monitor goes down?
deployed positions still auto-exit via the permissionless stop_loss_crank at 5% drawdown, or timeout_crank after 30 minutes. downside is always bounded, monitor or not.
how does this compare to drift insurance fund?
DIF is a passive backstop that earns liquidation fees. cascade lp is an active strategy that captures rebound premium. partial overlap; we target the slice DIF leaves on the table.
what if a cluster fires but price keeps falling?
stop-loss at 5% triggers. vault exits, books bounded loss, returns to idle. trend filter reduces deploy size during sustained downtrends to limit exposure further.
can i withdraw any time?
withdraw is valid while vault is idle. cycles bound at 30 minutes via on-chain timeout, so worst case you wait 30 minutes for the next idle window.
BUILT ON

no black boxes in the hot path.

every dependency is open, verifiable, and on-chain where it matters. the off-chain piece is cluster computation, and it never holds keys or funds.

L1solanaframeworkanchor 0.31perpdriftlendingmarginfilendingkaminoammraydium / orca / meteorabundlingjitosdk@esec/sdk
scansdriftmarginfikaminojupiter lendpyth (oracle)switchboard (next)helius (rpc)
Cinematic tilted keyboard in darkness with one ESEC key lit
READY?

when the next cascade fires,
be already there.

cascade-vault is live on devnet. deposit, watch a cycle play out, withdraw. mainnet ships after audit. clone the sdk and start integrating today.