oxen-core icon indicating copy to clipboard operation
oxen-core copied to clipboard

[refactor] strict type and user literals for currency amounts

Open majestrate opened this issue 3 years ago • 0 comments

internally, oxen currency amounts are atomic oxen as a uint64_t, which is not the same as an "oxen". this is an inherited artifact from upstream which has made multiple bugs happen.

we should use an explicitly constructable non ambiguous type for currency amounts with user literals for each denomination. ( 40_$OXEN 40_atomic_$OXEN etc or something )

majestrate avatar Aug 11 '22 13:08 majestrate