Skip to content

Rounding issue on small amounts #1418

@rafaelugolini

Description

@rafaelugolini

While investigating ousd_analytics, I found a small issue with small numbers:

The user deposited E 0.001 and got OETH 0.000999999999999999
https://etherscan.io/tx/0x9b005270a8ea48d6ea28f9f72550ba814dd579d73c81596eeaa82296ec5544b3

Image

Funny enough, etherscan rounds it up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OETHOETH related thingsP2Small number of users are affected, major cosmetic issuecontractsWorks related to contracts

    Type

    No type

    Projects

    Status

    To-do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions