fix: Rounding issue in approval amount (use site suggestion)#8485
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8485 +/- ##
==========================================
+ Coverage 40.62% 40.76% +0.13%
==========================================
Files 1239 1242 +3
Lines 29989 30056 +67
Branches 2870 2878 +8
==========================================
+ Hits 12182 12251 +69
+ Misses 17109 17102 -7
- Partials 698 703 +5 ☔ View full report in Codecov by Sentry. |
|
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/4f45a076-8b6d-42f4-a921-f4b8eba11879 |
jpuri
left a comment
There was a problem hiding this comment.
Will be n ice to have more testing on this change.
segun
left a comment
There was a problem hiding this comment.
Few comments to follow guidelines.
Co-authored-by: Olusegun Akintayo <akintayo.segun@gmail.com>
Co-authored-by: Olusegun Akintayo <akintayo.segun@gmail.com>
|

Description
There is an issue that shows that really large dapp proposed value is rounded off for approve transaction. Noticed that this happens when hexToBN value is wrapped using the Number function. This PR specifies add a boolean to prevent this for approve transactions while other use cases should act as it is.
Related issues
Fixes: #8199
Manual testing steps
Screenshots/Recordings
Before
https://recordit.co/l0DWAilLla
After
https://recordit.co/gEKmKf9Yq7
Pre-merge author checklist
Pre-merge reviewer checklist