Skip to content

TWAP vs. Spot Price Divergence Engine for Decentralized Oracle Security #61

Description

@Fatimasanusi

Protocols that rely on decentralized exchange spot prices without time-weighted average price (TWAP) or medianizer protections are prone to instantaneous flash-loan price manipulation. We need an analytics module that quantifies oracle manipulation cost for any target liquidity pair.

Acceptance Criteria:

  • Calculate the capital requirement ($ USD) needed to manipulate the target pool's spot price by 10%, 25%, and 50% within a single block.
  • Check whether downstream contracts consume raw reserve ratios or cumulative tick-based TWAP observations.
  • Flag pools where single-block price shifts greater than 15% can trigger automated liquidations or inflated borrow caps.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions