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

SOR - Assert behavior for tokens with 0 decimals #1498

Merged
merged 4 commits into from
Jan 17, 2025

Conversation

brunoguerios
Copy link
Member

Closes #795

Copy link

changeset-bot bot commented Jan 15, 2025

🦋 Changeset detected

Latest commit: 4821240

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
backend Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@brunoguerios brunoguerios marked this pull request as draft January 15, 2025 21:06
@brunoguerios brunoguerios marked this pull request as ready for review January 16, 2025 13:17
Copy link
Contributor

@mkflow27 mkflow27 left a comment

Choose a reason for hiding this comment

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

Lgtm

tOut = new Token(parseFloat(chainToIdMap['GNOSIS']), MPS.address as Address, MPS.token.decimals);
});

test('SOR quote should match swap query - below min', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Based on the issue description this is the test which ensures there is no issue in the sdk.

@@ -10,7 +10,8 @@
"resolveJsonModule": true,
"outDir": "./dist",
"skipLibCheck": true,
"sourceMap": true
"sourceMap": true,
"types": ["vitest/globals"],
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes working with tests easier.

@brunoguerios brunoguerios merged commit b3b0f10 into v3-canary Jan 17, 2025
1 check passed
@brunoguerios brunoguerios deleted the sor-token-0-decimals branch January 17, 2025 14:54
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.

SOR - Double check behavior for tokens with zero decimals
3 participants