You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect one of two things:
a. Withdraw the withdrawable amount - e.g. 1000000000012345678 to be withdrawn as 1.0 FLOW
b. The error message to read something like “Withdrawal amounts should be not exceed UFix64 precision”
The former behaviour IMHO is preferable as it allows for the amount to be withdrawn, truncating the remainder without loss.
Screenshots
Example transactions attached
Specifications
System: N/A
Go: N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
sisyphusSmiling
changed the title
Panic on remainder in UInt to UFix64 conversion
Panic on FLOW remainder in UInt to UFix64 conversion
Jan 8, 2025
What is the severity of this bug?
Should have:
Reproduction steps
Run a transaction attempting to withdraw an amount of FLOW from a COA that exceeds
UFix64
precision which will result in the following error:e.g. the result of running this transaction
This seems to be the result of the check in the impl.newInternalEVMTypeWithdrawFunction() method:
Expected behaviour
I would expect one of two things:
a. Withdraw the withdrawable amount - e.g. 1000000000012345678 to be withdrawn as 1.0 FLOW
b. The error message to read something like “Withdrawal amounts should be not exceed UFix64 precision”
The former behaviour IMHO is preferable as it allows for the amount to be withdrawn, truncating the remainder without loss.
Screenshots
Example transactions attached
Specifications
Additional context
N/A
The text was updated successfully, but these errors were encountered: