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

audit: Depeg event can happen at incorrect price #69

Closed
MiguelBits opened this issue Sep 25, 2022 · 1 comment · Fixed by #70
Closed

audit: Depeg event can happen at incorrect price #69

MiguelBits opened this issue Sep 25, 2022 · 1 comment · Fixed by #70
Assignees

Comments

@MiguelBits
Copy link
Contributor

Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault


if(
            vault.strikePrice() <= getLatestPrice(vault.tokenInsured())
            )
            revert PriceNotAtStrikePrice(getLatestPrice(vault.tokenInsured()));
@MiguelBits
Copy link
Contributor Author

@MiguelBits MiguelBits linked a pull request Sep 25, 2022 that will close this issue
@MiguelBits MiguelBits self-assigned this Sep 25, 2022
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 a pull request may close this issue.

1 participant