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

fix: valora app version check for Aave positions #680

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

jeanregisser
Copy link
Contributor

@jeanregisser jeanregisser commented Dec 2, 2024

I was randomly reading the code and noticed the check to include/exclude Aave positions would fail once we hit version 1.100. Which will be the next release.

This fixes it, and also defaults to including Aave for other Mobile Stack apps (any other User-Agent).
Which is what I think we want.

Copy link
Contributor

@MuckT MuckT left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

@satish-ravi satish-ravi left a comment

Choose a reason for hiding this comment

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

Great catch!

@@ -322,6 +326,37 @@ describe('GET /getPositions', () => {
data: TEST_POSITIONS_CELO,
})
})

for (const [userAgent, shouldIncludeAave] of [
Copy link
Contributor

Choose a reason for hiding this comment

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

is the reason to use for loop over it.each is for better test names? or something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes for better test name.

@jeanregisser jeanregisser merged commit 6e73c8a into main Dec 3, 2024
6 checks passed
@jeanregisser jeanregisser deleted the jeanregisser/fix-aave-user-agent-valora branch December 3, 2024 13:04
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.

3 participants