Aquaprime

Lend from your wallet, borrow cheaper as a verified human, and get liquidated only as much as needed

Visit Repo
Aquaprime banner

About

AquaPrime is a zero-custody credit market built on 1inch Aqua and SwapVM, designed around two simple principles: lenders should never have to lock capital into a custodial pool, and borrowers should never be wiped out by blunt liquidations.

Traditional lending protocols force liquidity providers to deposit assets into shared smart contract vaults, creating systemic honeypots and fragmented capital. AquaPrime eliminates deposits entirely by leveraging 1inch Aqua’s balance virtualization. A lender’s capital stays securely in their own wallet, where a single signature allows the same USDC to simultaneously back three live strategies: an under-collateralized credit line, a liquidation backstop, and an AMM. This achieves three times the capital efficiency with zero dollars sitting idle in contracts. Capital moves only at the exact microsecond a borrower draws a loan: aqua.pull routes USDC straight from the lender’s wallet to the borrower, and repayments flow directly back via aqua.push.

When positions go underwater, legacy protocols punish borrowers by dumping fifty to one hundred percent of their position at fixed penalties. AquaPrime replaces this with a mathematical scalpel inside the execution engine. We engineered a custom SwapVM opcode, 0xf0 (SolvencyDutchGuard), which dynamically calculates and auctions only the precise slice of collateral required to restore a position to a safe 1.02 health factor. It executes a Dutch auction ramping from a 1.5% to 6% discount over ten minutes, then asserts post-trade invariants to revert any fill exceeding the surgical cap. In our full-lifecycle integration tests, an insolvent borrower lost only 2.0 WETH out of 10, compared to roughly 4.6 WETH seized under standard close-factor rules. A second custom opcode, 0xf1 (OracleBackstopBid), lets LPs post standing oracle-priced bids that absorb this seized collateral, enabling keepers to execute zero-capital flash rescues across both orders in a single atomic transaction.

To protect the protocol without invasive identity checks, we integrated World ID Proof of Human through IDKit. Verified humans unlock an 115% collateral tier alongside a three-minute grace window, compared to 150% for anonymous accounts. The proof is verified against World’s Developer Portal API and permanently attested on-chain via EIP-712, preventing Sybil attackers from farming the lower tier with multiple wallets while requiring zero KYC.

For autonomous liquidation keepers, we introduced a cryptographic human-in-the-loop checkpoint using World ID Agent Pass. When an agent identifies an underwater position, it stages the auction and pauses. Before spending its hot key, it requires fresh human authorization via an OIDC step-up flow with PKCE, max_age=0, and an essential biometric authentication claim. The approval is bound to the exact borrower and action for 120 seconds. If cancelled, expired, or replayed, the backend fails closed with an HTTP 403 and refuses to broadcast. Because World’s enterprise portal gates production registration, the demo exercises our production-grade validation code against a standards-compliant local login server clearly identified in the interface.

Privacy is enforced at the network layer. Every JSON-RPC read the browser makes—including balances, health factors, and simulated SwapVM quotes, is routed through the Ethereum Foundation Anon-RPC Nox mixnet in a sandboxed, null-origin iframe. This closes a critical MEV attack vector where node operators surveil read queries to front-run profitable liquidations. The implementation is fail-closed, surfacing a clear notice rather than silently leaking traffic over cleartext if the mixnet drops.

AquaPrime is fully deployed on Ethereum Sepolia against the canonical 1inch Aqua contract, native Circle USDC, and Chainlink ETH/USD, with all five contracts verified on Sourcify. The system is backed by 43 contract tests including a 40-position property test of the surgical math, 19 frontend unit tests, and an end-to-end browser test validating the complete lifecycle. The protocol generates sustainable revenue through a 10% reserve factor on interest and a 0.5% protocol fee on liquidated collateral, all without ever taking custody of user funds.

Pitch: https://aquaprime-1.vercel.app/pitch

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

ShippingLast push 28 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Solvent

Solvency-aware market making for 1inch Aqua: quotes widen as wallets thin and refuse past a floor