Pier 01 — a warm pixel-art harbor at golden hour.

LIEN.

tie your loans.

a point-and-click lending pier on solana

gm · PIER 01
00:00 UTCXGH
Bench ▶Rack

LIEN — tie your loans. A Solana lending hooks framework.

LIEN is the degen harbor of Solana: a composable hook framework for Marginfi v2, Kamino Lend, and Save lifecycle events. Every degen ship eventually hits a storm. Knot, the otter rigger of pier 01, ties your bags to the pier with six standard knots — the slip knot, the timer hitch, the lock knot, the double bowline, the double helix, and the rolling hitch — before the candle turns red. No rug. Just rope.

Meet the rigger

Her name is Knot. She holds your bags. Lending on Solana has no hooks. Yet. Marginfi, Kamino and Save run fixed rules — and when SOL nukes 20 percent in an hour, fixed rules liquidate everyone at once. Knot ties custom logic onto the same audited lenders: the protocol stays, the rules bend. Eight lifecycle moments. Six standard knots. Eight slots per pool. Zero bags lost.

The six standard knots

The slip knot (DynamicLTV in code) tightens max LTV as realised volatility climbs — fires on beforeBorrow and afterDeposit. The timer hitch (TimeTriggerLiq) bounds liquidations to operator windows and delays under a stale oracle — fires on beforeLiquidate. The lock knot (WhitelistBorrow) restricts new debt to a registered allowlist — fires on beforeBorrow. The double bowline (AntiMEVLiq) delays liquidations and optionally reserves them for known keepers, breaking an MEV bot's one-block lead — fires on beforeLiquidate. The double helix (AutoHedge) opens a Drift perp short when collateral crosses a trigger band — fires on afterBorrow and afterDeposit. The rolling hitch (ReputationRate) discounts the borrow rate against on-chain repayment reputation — fires on beforeBorrow.

The survival ledger

Bags that did not get rekt: the six knots block the frontrun, tighten the rope before the dump, delay the liquidation through oracle lag, open the hedge on the way down, discount rates for good payers, and gate strangers at the gangplank. The simulator replays the same decision tree the on-chain executor runs.

Storms Knot weathered — simulated backtests

SOL-USDC on Marginfi with the slip knot plus the double bowline: liquidations down 31 percent versus baseline, 182 thousand dollars of MEV recaptured by operator keepers, max LTV 55 percent at peak volatility. JitoSOL-mSOL on Kamino with the slip knot plus the double helix: realised drawdown down 18 percent, 412 hedge fills via Drift, operator net rate APY 9.8 percent. USDC institutional on Save with the lock knot plus the rolling hitch: zero borrower defaults, average APR delta minus 2.4 percent, 84 approved borrowers. Numbers are illustrative; the knots are real.

The token — $LIEN

$LIEN sits behind every knot. Fifty percent of every pier fee buys back and burns $LIEN via Jupiter. Advanced double bowline, lock knot and double helix templates unlock when an operator stakes $LIEN against the pool. Knot publishers earn subscription fees in $LIEN with a 100 percent take on their own knots. Liquidation rewards routed through the double bowline compose with $LIEN emissions for registered keepers.

The executor

One Anchor 0.31 program at the end of the pier, live on Solana mainnet at 5yNMqcyZsGQJk4xvw4jjvoRBSnGs8mgramEa3HQe5faD. It stores Composition PDAs of up to eight hooks in priority order and runs them at all eight lifecycle events: register_pool binds a Marginfi, Kamino, or Save market; install_composition writes the knots; run_composition executes on every lifecycle event; publish_hook lists a knot with its flags bitmap as the on-chain manifest.

The toolbox

lien-cli ships every command the bench supports: lien list, lien create hook, lien simulate, lien action, lien deploy (plan only). The VS Code extension previews the knot diagram and runs simulations inline. Both build straight from the open source — Apache-2.0, github.com/liens-fi/lien.

Step onto the pier

The bench runs in your browser at /designer. The rack of published hooks lives at /marketplace. Docs at /docs. Storms came. The rope held. Tie your loans.