docs icon indicating copy to clipboard operation
docs copied to clipboard

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

Open smol-ninja opened this issue 7 months ago • 1 comments

The "About Precision" section has been removed from the Flow repo in https://github.com/sablier-labs/flow/pull/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. https://github.com/sablier-labs/flow/discussions/412

smol-ninja avatar Apr 08 '25 13:04 smol-ninja

@andreivladbrg do we still need to add this to the docs? Or can we ask developers to refer to the docs in the contracts?

smol-ninja avatar Nov 24 '25 15:11 smol-ninja