juni

Uniswap V4 Hook With FHE Based Encrypted Orders To Protect LPs & Traders

ETHGlobal New DelhiShipped September 26, 2025#defi#privacy
Visit Repo
juni banner

About

This project uses encrypted orders with arb auctions to benefit LPs and traders where LPs earn the encrypted amounts generated in arb auction for each block & traders get to benefit from low MEV as all critical amounts are encrypted or sufficiently masked which makes it difficult sandwich. Current balances of users are also hidden by a hook paired confidential ERC20 token wrapper. It also features an efficient 256 bit packing an unpacking algorithm encrypt or decrypt an entire block's transactions.

How it's made

Made using uniswap v4 hook template, and inco lightning rod template. It is a single pool hook which uses a function to allow users to submit encrypted swap requests. Each swap request contains an encrypted zero for one, arb auction fee and an input transformer. Since zero for one is encrypted and an input transformer is available, it help hides the input token even in pairs where price is very low or very high, thus preventing MEV. An inbuilt encrypted arb auction provides a way for LPs to offset loss from LVR. Encrypted content of all transactions in a block are packed in a single uint256 variable including 1 bit per tx zero for one, 1 bit per tx order validity, 5 bit per tx input multiplier which allows masking the amount in by either multiplying it by up to 100,000 or dividing it by up to 100,000, 12 bits of arb auction winner index and 128 bit of arb auction winner fee. These are then put up for decryption after certain blocks are passed. Upon public decryption, the entire block is unpacked and executed starting with the arb winning auction.

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?

Not checked yet.

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.

Iceberg

FHE-enabled privacy preserving Uniswap v4 limit order hook, for top tier traders wanting to take advantage of the power of Uni V4 without revealing their secrets.

TLIS-Hook

Encrypt your swaps, get random prices ±1%. MEV protection + gamified trading on Uniswap V4.

HookLens

Discover, inspect, and simulate Uniswap v4 hooks with an swap simulator pipeline.