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

Fixing aUSD decimal calculations again #148

Merged
merged 8 commits into from
May 9, 2022
Merged

Fixing aUSD decimal calculations again #148

merged 8 commits into from
May 9, 2022

Conversation

naps62
Copy link
Member

@naps62 naps62 commented May 9, 2022

Apparently I made a mistake on the previous fix for the fact that aUSD takes 12 decimal places.
This PR fixes the newly introduced issue, and fixes some tests to actually make sure we're testing against realistic 12-decimal values (previously, the tests for tokenToPaymentToken calculations were still using 18-decimals, so the problem slip through)

@vercel
Copy link

vercel bot commented May 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
discovery-dao ⬜️ Ignored (Inspect) May 9, 2022 at 6:26PM (UTC)

@naps62 naps62 requested a review from zamith May 9, 2022 12:41
@github-actions github-actions bot requested a review from DavideSilva May 9, 2022 12:41
@github-actions github-actions bot added the small small changes label May 9, 2022
@github-actions github-actions bot requested a review from zamith May 9, 2022 17:09
@github-actions github-actions bot added medium small changes and removed small small changes labels May 9, 2022
@naps62 naps62 merged commit e5e4517 into main May 9, 2022
@naps62 naps62 deleted the fix-decimals3 branch May 9, 2022 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium small changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants