Skip to content

Backend: Fix collateral valuation precision loss #632

@ONEONUORA

Description

@ONEONUORA

Problem

Decimal calculations don't account for different token decimals.

Impact

  • Precision loss in valuations
  • Incorrect collateral calculations
  • Financial inaccuracy

Solution

Implement proper decimal handling for different token precisions.

Files to Modify

  • backend/src/risk_engine.rs

Priority

High - Financial accuracy

Metadata

Metadata

Assignees

No one assigned

    Labels

    RustbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions