Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Verify precision loss #58

Open
epociask opened this issue May 24, 2023 · 2 comments
Open

Verify precision loss #58

epociask opened this issue May 24, 2023 · 2 comments
Assignees
Labels
good first issue Good for newcomers type: bug Something isn't working

Comments

@epociask
Copy link
Collaborator

Problem

The current code for converting wei to ether in the given acount_balance oracle definition has a potential issue of precision loss since the returned overflow/underflow byte is unchecked. This can lead to inaccurate conversion results and affect the accuracy of the overall calculations.

Solution

To ensure accurate conversion from wei to ether, it is necessary to verify the precision loss in the existing code implementation. This can be addressed by performing thorough testing and validation.

@epociask epociask added good first issue Good for newcomers type: bug Something isn't working labels May 24, 2023
@ProfParadox123
Copy link

Can we use fixed-point arithmetic ?

@ayoubed
Copy link

ayoubed commented May 20, 2024

I can work on this issue, please provide me with more details.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants