Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
xvilka
on Sept 28, 2021
|
parent
|
context
|
favorite
| on:
Bitfinex just spent $23.7M in fees to make a singl...
This is why in "classic" fintech they used so-called "decimal" fixed-point numbers for decades. To not use COBOL as an example let's check something more modern, e.g. Rust[1].
[1]
https://github.com/paupino/rust-decimal
MichaelBurge
on Sept 28, 2021
[–]
Ethereum uses integers to store transaction amounts internally. Integers are fixed-point already, so that library is completely irrelevant.
xvilka
on Sept 28, 2021
|
parent
[–]
I didn't mean Ethereum itself, apparently the bug is in whatever code written at the higher level, inside the exchange or whatever service they use.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://github.com/paupino/rust-decimal