This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
Monetary Amount Support #187
Labels
Difficulty: Challenging
Help Wanted 🆘
Extra attention is needed
Type: Feature Request 🛍️
New feature or request
Type: Question ❓
Further information is requested
Define how monetary amounts/currencies should be modeled in CML and executed in Ergo. Do we need arbitrary precision math or fixed-point math for example? How many bits?
Existing CTO Model
https://github.com/accordproject/models/blob/master/money.cto
JS Libraries
https://scurker.github.io/currency.js/
https://github.com/MikeMcl/bignumber.js/
Java Libraries
JavaMoney_Specification_1.0-final.pdf
http://javadox.com/javax.money/money-api/1.0/javax/money/MonetaryAmount.html
https://github.com/JavaMoney/jsr354-api/blob/master/src/main/java/javax/money/MonetaryAmount.java
Solidity
ethereum/EIPs#724
https://rangeshsripathi.com/2017/12/13/4-dealing-with-fractions-in-solidity-smart-contract/
The text was updated successfully, but these errors were encountered: