Skip to content

Explain the rationale behind 18 decimals format for RPS and snapshot amount #297

@smol-ninja

Description

@smol-ninja

The "About Precision" section has been removed from the Flow repo in sablier-labs/flow#431. However, some of its content can be useful for developers into understanding why we use 18 decimals format for RPS and snapshot amount.

Therefore, we should document it somewhere in the Sablier docs (TBD), answering the following questions:

  1. Why does RPS use 18 decimals format instead of token's decimals?
  2. Why is scaling and descaling of amounts necessary in deposit and withdraw?

References

  1. About Precision section
  2. Why are we still keeping diagrams in this repository? flow#412

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: mediumDefault level of effort.onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekpriority: 3Nice-to-have. Willing to ship without this.type: docsChanges to documentation.work: complicatedSense-analyze-respond. The relationship between cause and effect requires analysis or expertise.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions