Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/check precision #62

Merged
merged 7 commits into from
Nov 8, 2024
Merged

Conversation

envin3
Copy link
Contributor

@envin3 envin3 commented Nov 8, 2024

In case the precision is lower or higher than the number of decimals coming from EVM swap the settle do not work.
In the fix proposed the amount is checked with full precision and then floored to the EOS xerc20 token precision (needed for the mint). In case EVM precision is lower 0 padding happens.
Being a settle flooring the amount overcollateralize slightly.

@envin3 envin3 requested a review from gitmp01 November 8, 2024 01:55
@envin3 envin3 linked an issue Nov 8, 2024 that may be closed by this pull request
@gitmp01 gitmp01 changed the base branch from master to feat/singleton-adapter November 8, 2024 08:49
Copy link
Collaborator

@gitmp01 gitmp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@envin3 envin3 merged commit acb0c3d into feat/singleton-adapter Nov 8, 2024
1 check passed
@envin3 envin3 deleted the feat/check-precision branch November 8, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double check when precision is set different across chains
2 participants