← Back to home

Shayd

Privacy-First Leveraged Trading/Yield Generation Platform with Soft Liquidations

Problem Statement

Shayd is fork of f(x) protocol that adds an extra layer of protection on top. It uses TEE and transaction bundling to hide user's positions and liquidations breaks to make it harder for market manipulators to hunt their positions. Because it is an f(x) protocol fork it enables soft liquidations making it a superior leveraged trading platform compared to others, being deployed on a popular Ethereum L2 it can compete with the market leaders in execution spead but also introduces additional privacy features.

Solution

I forked f(x) protocol with it's flash loan based leverage position management and added an Osasis TEE(ROFL) and transactions bundling so that the protocol bundles several transactions together and opens a TEE(keeper + resolver) managed big position for several users instead of an individual one, all the individual data positions are encrypted and stored inside the TEE.Privacy-first architecture:Frontend Encryption: Users encrypt position parameters before sending to resolverTEE Storage: Encrypted parameters stored in TEE, resolver never sees plaintextAtomic Bundling: Flash loan + Open all 10 positions + Repay in single transactionLiquidation Prices Private: Only TEE knows position parameters; on-chain only sees final stateSoft Liquidations: Positions can be partially liquidated by automatically selling collateral, no hard liquidationsPosition parameters that are encrypted on the frontend include:Collateral Amount: The amount of collateral tokensDebt Amount: The amount of debt tokensOwner Address: The address of the position ownerPosition ID: The unique identifier for the position

Hackathon

ETHGlobal Buenos Aires

2025

Contributors