docs
docs copied to clipboard
Explain the rationale behind 18 decimals format for RPS and snapshot amount
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:
- Why does RPS use 18 decimals format instead of token's decimals?
- Why is scaling and descaling of amounts necessary in deposit and withdraw?
References
- About Precision section
- https://github.com/sablier-labs/flow/discussions/412
@andreivladbrg do we still need to add this to the docs? Or can we ask developers to refer to the docs in the contracts?