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

Update contracts to latest deps #4

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Update contracts to latest deps #4

merged 1 commit into from
Feb 15, 2023

Conversation

grod220
Copy link
Contributor

@grod220 grod220 commented Feb 15, 2023

This PR primarily was to integrate the new vaults and use the new Apollo versions of:

cw-dex             = { version = "0.1.1", features = ["osmosis"] }
cw-vault-standard  = { version = "0.2.0", features = ["lockup", "force-unlock"] }

However, this task required to update nearly everything to their latest dependencies. For the most part, it was seamless. Though, there is one sad issue: CosmWasm/cosmwasm#1608. The Error we need is not exposed publicly. Which means we have to use this ugly syntax in lots of places temporarily:

underlying_value
                .checked_mul_floor(checked_base_max_ltv)
                .map_err(|_| TempCheckMulFracError {})?

A benefit is that we can delete the whole Mars-Math package now.

Copy link
Contributor

@piobab piobab left a comment

Choose a reason for hiding this comment

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

LGTM

@grod220 grod220 merged commit f224410 into master Feb 15, 2023
@grod220 grod220 deleted the update-apollo-deps branch February 15, 2023 16: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.

3 participants