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: sweeping before withdrawal #4337

Merged
merged 2 commits into from
Dec 12, 2023
Merged

fix: sweeping before withdrawal #4337

merged 2 commits into from
Dec 12, 2023

Conversation

AlastairHolmes
Copy link
Contributor

I'm not sure how this was happened, but sweeping was intended to occur before withdrawal automatically.

Also I fixed that error message you mentioned previously.

Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (e8fd491) 71% compared to head (ec478c8) 71%.

Files Patch % Lines
state-chain/pallets/cf-lp/src/lib.rs 0% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4337   +/-   ##
=====================================
- Coverage     71%     71%   -0%     
=====================================
  Files        390     390           
  Lines      66256   66257    +1     
  Branches   66256   66257    +1     
=====================================
- Hits       47233   47230    -3     
- Misses     16646   16648    +2     
- Partials    2377    2379    +2     

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

@martin-chainflip
Copy link
Contributor

Let's add a test case where a user has pending fees and withdraws more than their free balance. This should now work

@AlastairHolmes AlastairHolmes merged commit 7d0fcd1 into main Dec 12, 2023
41 checks passed
@AlastairHolmes AlastairHolmes deleted the fix/sweeping branch December 12, 2023 16:25
kylezs pushed a commit that referenced this pull request Dec 12, 2023
* doc: correct Error message

* fix: sweep before withdrawal
tomjohnburton pushed a commit that referenced this pull request Dec 12, 2023
Co-authored-by: kylezs <zsembery.kyle@gmail.com>
Co-authored-by: Martin Rieke <martin@chainflip.io>
Co-authored-by: Jamie Ford <jamie@chainflip.io>
Co-authored-by: Maxim Shishmarev <msgmaxim@gmail.com>
Co-authored-by: Alastair Holmes <42404303+AlastairHolmes@users.noreply.github.com>
Co-authored-by: Martin Rieke <121793148+martin-chainflip@users.noreply.github.com>
Co-authored-by: dandanlen <3168260+dandanlen@users.noreply.github.com>
Fix: CFE Witnessing, use parent block metadata when decoding events (#4331)
fix: sweeping before withdrawal (#4337)
syan095 added a commit that referenced this pull request Dec 18, 2023
…-timeout

* origin/main:
  feat: end to end network upgrade github action (#4274)
  feat: spec_version of PR is greater than spec version of current release (#4355)
  feat: enforce version is greater than release version on PRs to main (#4351)
  fix: btc witnesser test failing sometimes (#4353)
  fix: connections can become stale when reconnecting (#4310)
  chore: add `chainflip-rpc-node` systemd file 🚀 (#4352)
  feat: API Bins check SC compatibility (#4342)
  chore: update runtime spec checks ⛓️ (#4349)
  feat: Add version cmd to all bins (#4343)
  fix: changelog check 🤫 (#4348)
  chore: update docker tags 🐳 (#4347)
  chore: add runtime version check 👀 (#4344)
  feat: shave fees on ingress (#4335)
  pick/persa fixes (#4329)
  feat: track btc fees on success (#4334)
  ensure we dont create BTC transaction outputs below the bitcoin dust limit (#4340)
  fix: sweeping before withdrawal (#4337)
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

2 participants