Skip to content

Price discrepancy between oracle and the AMM causes liquidations and auto-rebalancing to pause #128

@turbolent

Description

@turbolent

Issue To Be Solved

Pause liquidations and rebalancing involving asset X automatically if no trustworthy price is available for asset X.

This is an important disaster prevention mechanism, i.e. a hard rule that FCM must always abide to:
If no trustworthy price is available for asset X, user positions (both collateral and debt) in asset X are not to be touched!

Suggested Solution

The Oracle should abort [..] if "the price seems weird".

Reasons to conclude that "the price seems weird":

  • At least one of our price sources (including, perhaps, multiple off-chain oracles and multiple on-chain dexes) deviates by more than X% from the other price sources
  • At least one of our price sources (or the median price itself) has changed by more than Y% in the last Z seconds

Further reading

slack thread where this is discussed https://flow-foundation.slack.com/archives/C08QF29F7TK/p1769540691604539 (in addition, this slack thread also discusses an independent governance mechanism for pausing liquidations, as described in issue #126)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions