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: substract broker fee from swap #4226

Merged
merged 1 commit into from
Nov 9, 2023
Merged

fix: substract broker fee from swap #4226

merged 1 commit into from
Nov 9, 2023

Conversation

kylezs
Copy link
Contributor

@kylezs kylezs commented Nov 9, 2023

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

Fixes unlimited money glitch :)

Created this to add tests: https://linear.app/chainflip/issue/PRO-966/broker-fee-unit-tests

Copy link

codecov bot commented Nov 9, 2023

Codecov Report

Merging #4226 (4818d8d) into main (2eb196d) will decrease coverage by 0%.
The diff coverage is 75%.

@@          Coverage Diff          @@
##            main   #4226   +/-   ##
=====================================
- Coverage     71%     71%   -0%     
=====================================
  Files        383     383           
  Lines      62704   62707    +3     
  Branches   62704   62707    +3     
=====================================
- Hits       44822   44818    -4     
- Misses     15550   15552    +2     
- Partials    2332    2337    +5     
Files Coverage Δ
state-chain/pallets/cf-swapping/src/lib.rs 84% <75%> (-<1%) ⬇️

... and 3 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@dandanlen dandanlen enabled auto-merge (squash) November 9, 2023 11:55
@dandanlen dandanlen merged commit b38c11a into main Nov 9, 2023
41 checks passed
@dandanlen dandanlen deleted the fix/broker-fee branch November 9, 2023 12:24
dandanlen pushed a commit that referenced this pull request Nov 9, 2023
@linear linear bot mentioned this pull request Nov 17, 2023
2 tasks
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.

2 participants