logoalt Hacker News

lxgryesterday at 2:25 PM1 replyview on HN

If you’re only trading in USD and other two-decimal currencies it can work fine, yes. For anything else, it’s much worse as also detailed in TFA.


Replies

antonymooseyesterday at 7:22 PM

You provide different handling strategies for different currencies. You also sort currency data alongside your amount. There is nothing complicated or edge-case here.

This works for USD, JPY or $MEMECOIN and it scales very well.