Risk & Arbitrage Protections

Under-the-hood improvements focused on performance, pricing accuracy, and protection from toxic flow.

Smarter Fee & Flow Logic

  • 1-min Volatility Windows: Price volatility is tracked in rolling 1-minute windows directly on-chain.

  • Oracle-Based Pricing: Fees is calculated using oracle-driven price changes instead of just swap deltas.

  • Unified Swap Direction Handling: Swap direction logic (A→B & B→A) is evaluated together using shared price and volatility context.

Reliable Execution During Congestion

  • Compute-Aware Batching: Large transactions are split into smaller compute-efficient instructions.

  • Adaptive Priority Fees: GAMMA adjusts priority fees in real time to increase success during network congestion.

These changes reduce missed updates on volatile pairs and improve swap reliability.

Improved Oracle Management

  • Slot-Based Staleness Checks: Price freshness is now tracked by Solana slot height instead of wall-clock time, improving consistency.

  • Smarter CEX Routing: Off-chain price polling is routed via the most liquid CEX book, not just aggregator feeds.

Toxic Flow Resistance

  • Directional Fees Optimization: LP protection mechanisms now handle fee symmetry more efficiently, reducing arbitrage exposure.

These measures help GAMMA deliver better pricing, reduce arb risk, and grow yield for LPs.

Last updated

Was this helpful?