-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
questionFurther information is requestedFurther information is requested
Description
While using our app, if the user tries to send the max amount of tez, we do some checks and deduct the fees from the sending amount (and confirm it with the user). While doing these calculations our app will crash if the users balance is less than the fees. As Tez is using BigUInt under the hood which uses uncatchable preconditions.
I'm wondering what your take on this is?
I would have expected some kind of error from trying to send a negative Tez amount. But I wasn't expecting to encounter an uncatchable crash just from trying to work out the sending amount. Something like this: let value = Tez(0.1) - Tez(0.2)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested