Protocol Architecture & Reference

SQWZE Documentation

Comprehensive guide to the SQWZE Short Desk engine, Uniswap V4 pool pricing hooks, collateralized short vaults, and liquidation mechanisms.

1. Protocol Overview

Over 99% of long-tail speculative memecoins trend to zero within days of launching on bonding curves or decentralized exchanges.

SQWZE solves this asymmetry. It allows any trader to open leverage short positions directly against long-tail liquidity pools, pricing risk dynamically off on-chain Uniswap V4 state.

Core Architecture Principle: SQWZE operates completely without centralized price oracles. All mark prices, liquidity depths, and settlement calculations are derived directly from live Uniswap V4 pool states.

2. Short Desk Mechanics

To open a short position on SQWZE, traders deposit collateral in ETH. The contract calculates the position size based on selected leverage and pool depth limits.

Position Lifecycle

  1. Deposit Collateral: Trader submits ETH to the PONS meme hook.
  2. Virtual Short Mint: The protocol locks the collateral and tracks the virtual short inventory against the target token.
  3. Price Settlement: As token price decays, trader profit accrues linearly based on the downward price delta.
  4. Close & Payout: When closing, collateral plus accrued PnL (minus protocol fees) is returned to the user wallet.
// PnL Formula Delta_Price = Entry_Price - Current_Mark_Price Raw_PnL = Position_Size * (Delta_Price / Entry_Price) Payout = Collateral + Raw_PnL - Borrow_Fees

3. Uniswap V4 Hooks Integration

SQWZE utilizes custom Uniswap V4 Hooks attached directly to target token pools. These hooks perform three vital functions:

Hook Event Trigger Function
beforeSwap On Swap Execution Verifies tick bounds and prevents sandwich attacks or flash loan price manipulation.
afterSwap Post Swap Updates SQWZE Desk mark price snapshot and records cumulative funding rate ticks.
afterAddLiquidity LP Modification Recalculates maximum allowable short open interest based on updated pool depth.

4. Liquidations & Risk Parameters

If an asset experiences an unexpected price surge, short positions risk undercollateralization. SQWZE utilizes autonomous liquidators to protect protocol solvency.

Parameter Value Description
Max LTV 80.0% Maximum loan-to-value threshold before position marked for liquidation.
Maintenance Margin 15.0% Minimum collateral ratio required to keep short position active.
Liquidation Incentive 5.0% Bonus reward paid to liquidation bots upon triggering standard unwind.