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

Failed Pool Entry Prevention #129

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

fyakubov
Copy link
Contributor

Prevents entry to pool when the share price is 95% down from launch.

As a side effect, pool also rejects any transactions using fundsToShares conversion when the pool funds is exactly zero.

However such rejection is ok, as withdraw on zero pool funds would result in total loss of shares from a position.

Reference: Fix-review WP-I5

@fyakubov fyakubov merged commit 02c73f2 into main Mar 13, 2023
@fyakubov fyakubov deleted the feature-failed-entry-protection branch March 13, 2023 17:15
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.

None yet

1 participant