Shayd

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

Shayd

Created At

ETHGlobal Buenos Aires

Project Description

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.

How it's Made

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:

  1. Frontend Encryption: Users encrypt position parameters before sending to resolver
  2. TEE Storage: Encrypted parameters stored in TEE, resolver never sees plaintext
  3. Atomic Bundling: Flash loan + Open all 10 positions + Repay in single transaction
  4. Liquidation Prices Private: Only TEE knows position parameters; on-chain only sees final state
  5. Soft Liquidations: Positions can be partially liquidated by automatically selling collateral, no hard liquidations

Position parameters that are encrypted on the frontend include:

  • Collateral Amount: The amount of collateral tokens
  • Debt Amount: The amount of debt tokens
  • Owner Address: The address of the position owner
  • Position ID: The unique identifier for the position
background image mobile

Join the mailing list

Get the latest news and updates