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: add ALM vault to LpSugar #78

Merged
merged 3 commits into from
Sep 9, 2024
Merged

feat: add ALM vault to LpSugar #78

merged 3 commits into from
Sep 9, 2024

Conversation

ethzoomer
Copy link
Contributor

No description provided.

Copy link
Collaborator

@stas stas left a comment

Choose a reason for hiding this comment

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

Left some minor notes. Would be great to have a test with an ALM deposit if possible.

contracts/LpSugar.vy Outdated Show resolved Hide resolved
contracts/LpSugar.vy Show resolved Hide resolved
contracts/LpSugar.vy Outdated Show resolved Hide resolved
@stas stas force-pushed the alm branch 2 times, most recently from 0838877 to 0b2766d Compare August 5, 2024 19:14
Copy link
Contributor

Choose a reason for hiding this comment

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

Leaving this here as a suggestion (also fine if it's not implemented). This has already been tested in the FE so it's only for redundancy.

Instead of having the

assert pos.id is not None
assert pos.lp is not None
assert pos.alm is not None

we would

assert pos.id == <expected_id>
assert pos.lp == <expected_lp>
assert pos.alm == <expected_alm>

@stas stas merged commit b9f9923 into v3 Sep 9, 2024
2 checks passed
@stas stas deleted the alm branch September 9, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants