Skip to content

Implementation complete - #842

Merged
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
ykargeee-bit:feat/BasisPoints
Jul 27, 2026
Merged

Implementation complete#842
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
ykargeee-bit:feat/BasisPoints

Conversation

@ykargeee-bit

Copy link
Copy Markdown
Contributor

Closes #747
The code is correct. The module uses use super::*; (line 20) which brings BasisPoints into scope, and it's used on line 23 (BasisPoints::DENOM) and now on lines 663-664 (BasisPoints::new()). The remaining warning is likely a stale LSP diagnostic.Here's a summary of the three fixes applied:
Closes #748
Lines 663-664: Wrapped old_rate and new_rate (both u32) with BasisPoints::new(...) to match the BasisPoints type expected by the FeeRateUpdated event fields.
Line 681: Changed config.base_fee_bps as u64 to config.base_fee_bps.get() as u64 — .get() extracts the inner u32 which can then be cast to u64.
Closes #749
Line 689: Changed .min(config.max_fee_bps) to .min(config.max_fee_bps.get()) — .get() extracts the inner u32 to match the u32 return type.
The BasisPoints import on line 7 is now actively used (via BasisPoints::new() on lines 663-664 and BasisPoints::DENOM on line 23), so the unused import warning should resolve once the LSP refreshes.

Closes #752

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@ykargeee-bit Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@nanaf6203-bit
nanaf6203-bit merged commit f31f523 into MettaChain:main Jul 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants