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

Stargaze Fair Burn v1.1.0 #20

Merged
merged 9 commits into from
Feb 7, 2024
Merged

Stargaze Fair Burn v1.1.0 #20

merged 9 commits into from
Feb 7, 2024

Conversation

tasiov
Copy link
Contributor

@tasiov tasiov commented Dec 6, 2023

Fair Burn Changes

This PR implements a fee_manager address in the fair burn contract config. This address will receive the protocol's share of fees for denoms other than STARS.

@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2023

Codecov Report

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

Comparison is base (4105d89) 89.06% compared to head (0523fc3) 85.68%.
Report is 1 commits behind head on main.

Files Patch % Lines
contracts/fair-burn/src/migrate.rs 0.00% 20 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
- Coverage   89.06%   85.68%   -3.39%     
==========================================
  Files          13       17       +4     
  Lines         439      447       +8     
==========================================
- Hits          391      383       -8     
- Misses         48       64      +16     

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

contracts/fair-burn/src/migrate.rs Show resolved Hide resolved
Comment on lines +72 to +83
if recipient.is_some() {
fee_manager_funds.push(protocol_coin);
if let Some(dist_coin) = dist_coin {
recipient_funds.push(dist_coin);
}
} else {
let fee_manager_coin = coin(
protocol_coin.amount.u128() + dist_coin.map_or(0u128, |c| c.amount.u128()),
protocol_coin.denom,
);
fee_manager_funds.push(fee_manager_coin);
}
Copy link
Member

Choose a reason for hiding this comment

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

Ok this was a bit confusing maybe should add just a few doc comments
recipient is if there is a dev address to share fairburn right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes that's right, typically won't be used for our stuff

@shanev shanev merged commit 6982c76 into main Feb 7, 2024
5 checks passed
@shanev shanev deleted the tasiov/stargaze-fair-burn/v1.1 branch February 7, 2024 20:54
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.

5 participants