Skip to content

Prevent underflow in cumulative fields #152

@defispartan

Description

@defispartan

Describe the bug

Due to use of scaled vs realtime balances, some calculations may be inexact for cumulative fields, if this occurs it can result in underflow in some scenarios which can permanently break fields.

In Avalanche V3 market:

{
  reserves(where: {symbol: "DAI.e"}){
    symbol
    totalLiquidity
  }
}

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