Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: stableswap gradual amplification change #629
feat: stableswap gradual amplification change #629
Changes from 1 commit
13a78c4
97c113f
204711d
174766b
7ebc401
2fb6409
cb43244
683c6a5
ff4b2b3
7c89def
c551c55
1daf5d5
45addda
717e4b5
9225cbe
86113c3
0958cf6
a4581c1
a2c2fbd
3c038a0
2ed11b8
e574d29
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 406 in pallets/stableswap/src/lib.rs
Codecov / codecov/patch
pallets/stableswap/src/lib.rs#L406
Check warning on line 432 in pallets/stableswap/src/lib.rs
Codecov / codecov/patch
pallets/stableswap/src/lib.rs#L432
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if you want to speed up or slow down ramp up? this check seems not very effective as it could be bypassed by just changing final amp by 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this just ensures that you dont set the same value as there is now as it does not make any change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can still change it however with the same final amp, as you can set different end block therefore slow down or hasten the change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. now it is different - this was a case when you had to wait for previous change to finish.
now it makes sense to ensure that the new final amplification != initial ampfliciation, isnt it ?
Check warning on line 443 in pallets/stableswap/src/lib.rs
Codecov / codecov/patch
pallets/stableswap/src/lib.rs#L443
Check warning on line 562 in pallets/stableswap/src/lib.rs
Codecov / codecov/patch
pallets/stableswap/src/lib.rs#L562
Check warning on line 768 in pallets/stableswap/src/lib.rs
Codecov / codecov/patch
pallets/stableswap/src/lib.rs#L768
Check warning on line 804 in pallets/stableswap/src/lib.rs
Codecov / codecov/patch
pallets/stableswap/src/lib.rs#L804
Check warning on line 909 in pallets/stableswap/src/lib.rs
Codecov / codecov/patch
pallets/stableswap/src/lib.rs#L909