-
Notifications
You must be signed in to change notification settings - Fork 78
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: remove stableswap ed check #1003
Conversation
Crate versions that have been updated:
Runtime version has been increased. |
I think this check was supposed to check the shares left after withdrawal to stop you from being locked out as there is similar check in XYK if I remember correctly. However, this won't prevent it as you can just send shares away. This means we can end up in a state where there is enough shares in a pool but there is not enough shares in anybody's account to actually withdraw anything. I think the solution to this is to tie the minimal pool balances/shares to existential deposit. This should be viable thing after we implement #1007 However this number probably shouldn't change. I would consider setting it to the fallback values so we don't end up in the same situation. |
So you mean that instead of removing the checks, we should lower the MinPoolLiquidity so to 1_000 from 1_000_000? |
No. :D I don't know how this was deduced. We should remove this check and I made a new issue for the problem this was probably supposed to fix (but in a wrong way here) |
We should not do this check as we can have accounts with balance less than
T::MinPoolLiquidity
then the following check prevents the shares withdrawalhydration-node/pallets/stableswap/src/lib.rs
Lines 574 to 578 in ea4e622
TODO: