Comment by abdullahkhalids
Comment by abdullahkhalids 9 hours ago
How would this handle Canadian guidelines for dealing with cents in cash, where you round to the nearest 5c [1]?
Amounts ending in 1 cent and 2 cents are rounded down to the nearest 10 cents;
Amounts ending in 3 cents and 4 cents are rounded up to the nearest 5 cents;
Amounts ending in 6 cents and 7 cents are rounded down to the nearest 5 cents;
Amounts ending in 8 cents and 9 cents are rounded up to the nearest 10 cents;
Amounts ending in 0 cent and 5 cents remain unchanged.
EDIT: I think if you send 12 cents, send [CADCASH/2 12] ( source = @user1 destination = @user2 )
It should result in sending 10 cents. "postings": [{"source": "user1",
"destination": "user2",
"amount": 10,
"asset": "CADCASH/2"}]
Can this happen?[1] https://www.canada.ca/en/revenue-agency/programs/about-canad...
Well that's definitely a good puzzle. I've tried to model it for a bit, but it indeed looks like we'd need to add something to the language to make it possible at all! Thanks for bringing this up.