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

fix: rename slippage -> price impact #4679

Merged
merged 8 commits into from
Mar 22, 2024
Merged

fix: rename slippage -> price impact #4679

merged 8 commits into from
Mar 22, 2024

Conversation

marcellorigotti
Copy link
Contributor

Pull Request

Closes: PRO-1254

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have updated documentation where appropriate.

Summary

Renaming of slippage -> price delta

Non-Breaking changes

@marcellorigotti
Copy link
Contributor Author

I am not sure why but move_prefix wasn't working while testing the migration so I opted to manually add the value to the new storage item and kill the old one.

Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Attention: Patch coverage is 95.12195% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 72%. Comparing base (775a75b) to head (bebeb60).
Report is 6 commits behind head on main.

Files Patch % Lines
state-chain/pallets/cf-pools/src/weights.rs 0% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##            main   #4679    +/-   ##
======================================
- Coverage     72%     72%    -0%     
======================================
  Files        414     414            
  Lines      68463   68383    -80     
  Branches   68463   68383    -80     
======================================
- Hits       49253   49084   -169     
- Misses     16807   16889    +82     
- Partials    2403    2410     +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marcellorigotti marcellorigotti changed the title feat: rename slippage -> price impact fix: rename slippage -> price impact Mar 21, 2024
@dandanlen dandanlen merged commit 1e496bf into main Mar 22, 2024
43 checks passed
@dandanlen dandanlen deleted the feature/pro-1254 branch March 22, 2024 08:45
@@ -289,9 +289,9 @@ pub mod pallet {
pub(super) type ScheduledLimitOrderUpdates<T: Config> =
StorageMap<_, Twox64Concat, BlockNumberFor<T>, Vec<LimitOrderUpdate<T>>, ValueQuery>;

/// Maximum relative slippage for a single swap, measured in number of ticks.
/// Maximum relative price impact for a single swap, measured in number of ticks.
Copy link
Contributor

Choose a reason for hiding this comment

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

change the comment here not say relative.

Copy link
Contributor

Choose a reason for hiding this comment

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

dandanlen pushed a commit that referenced this pull request Mar 22, 2024
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