Open LukasKorba opened 2 months ago
Any mathematical operation with Zatoshi forces users of Zatoshi type to use.amount. This can be optimized and improved with BinaryInteger protocol.
.amount
let value = Zatoshi(100) // write if value > 100 { ... } // instead of if value.amount > 100 { ... }
Any mathematical operation with Zatoshi forces users of Zatoshi type to use
.amount
. This can be optimized and improved with BinaryInteger protocol.