Skip to content

fix: incorrect fee calculation for platform-to-platform addresses transfer#514

Closed
lklimek wants to merge 3 commits intov1.0-devfrom
fix/fee-platform-to-platform
Closed

fix: incorrect fee calculation for platform-to-platform addresses transfer#514
lklimek wants to merge 3 commits intov1.0-devfrom
fix/fee-platform-to-platform

Conversation

@lklimek
Copy link
Contributor

@lklimek lklimek commented Feb 2, 2026

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 2, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/fee-platform-to-platform

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Base automatically changed from fix/not-enough-balance-for-fee to v1.0-dev February 5, 2026 03:13
lklimek added a commit that referenced this pull request Feb 24, 2026
… max()

Add unified fee methods to PlatformFeeEstimator that compute
max(legacy, transition-based) internally, so callers don't need to
know about the dual estimation strategy. Consolidates changes from
PR #521 and PR #514 into centralized estimator methods.

New public methods:
- estimate_platform_to_core_fee()
- estimate_platform_to_platform_fee()
- estimate_core_to_platform_fee()
- estimate_identity_create_from_addresses_fee()
- estimate_identity_topup_from_addresses_fee()

Reduce public API surface:
- Make internal helpers private (calculate_processing_fee,
  calculate_seek_fee, calculate_storage_fee, etc.)
- Remove dead code (estimate_masternode_vote, storage_fees(),
  estimate_address_credit_withdrawal, estimate_contract_create_detailed)

Callers updated: send_screen, register_identity, identity/mod,
add_new_identity_screen, top_up_identity_screen.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lklimek
Copy link
Contributor Author

lklimek commented Feb 24, 2026

Replaced by #651

@lklimek lklimek closed this Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant