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: only burn flip if non zero #3932

Merged
merged 2 commits into from
Sep 4, 2023
Merged

Conversation

dandanlen
Copy link
Collaborator

Pull Request

This avoid scheduling an egress of zero for the flip buy-and-burn if the collected fees are zero.

@dandanlen dandanlen marked this pull request as ready for review August 31, 2023 14:49
),
None,
);
}
T::Issuance::burn(flip_to_burn.into());
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this has to move into the if clause 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops good catch.

@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #3932 (3eb010a) into main (c44279b) will increase coverage by 0%.
Report is 2 commits behind head on main.
The diff coverage is 91%.

@@          Coverage Diff          @@
##            main   #3932   +/-   ##
=====================================
  Coverage     71%     71%           
=====================================
  Files        366     366           
  Lines      56798   56802    +4     
  Branches   56798   56802    +4     
=====================================
+ Hits       40545   40551    +6     
+ Misses     14240   14237    -3     
- Partials    2013    2014    +1     
Files Changed Coverage Δ
state-chain/pallets/cf-emissions/src/lib.rs 80% <91%> (-<1%) ⬇️

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dandanlen dandanlen merged commit d1a9ab3 into main Sep 4, 2023
42 checks passed
@dandanlen dandanlen deleted the fix/only-burn-flip-if-non-zero branch September 4, 2023 09:33
syan095 added a commit that referenced this pull request Sep 5, 2023
…on-integration

* origin/main:
  Added CFE setting for logging span lifecycles (#3936)
  fix: only burn flip if non zero (#3932)
  Fix: Correct Select Median Implementation (#3934)
  fix: independent witnessing startup (#3913)
  🍒 cherry-pick: changes in release for CI and chainspec (#3933)
  refactor: Re-arrange Chains traits for better composability (#3912)
  fix: log error when we try to transfer *more* than we have fetched (#3930)
  chore: add checks and increase timeout (#3928)
  Add `bind_redeem_address` to CLI (#3908)
  🍒 cherry-pick: add missing prod dockerfiles (#3926)
  chore: skip localnet specific tests in devnet 🤫 (#3919)
  fix: broadcast success should be witnessable after a rotation (#3921)

# Conflicts:
#	state-chain/cf-integration-tests/src/network.rs
dandanlen added a commit that referenced this pull request Sep 6, 2023
dandanlen added a commit that referenced this pull request Sep 6, 2023
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

3 participants