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

Audit issue 7: Remove obsolete outbound_fee parameter #1051

Merged
merged 2 commits into from
Dec 16, 2023
Merged

Conversation

vgeddes
Copy link
Collaborator

@vgeddes vgeddes commented Dec 14, 2023

Outbound fees on ethereum are now calculated dynamically using an exchange rate, and so this outbound_fee parameter is obsolete and should have been previously removed.

In parachain/pallets/system/src/lib.rs:441-465 and in parachain/pallets/system/src/lib.rs:479-495, the update_channel and force_update_channel extrinsics permit to modify channels by specifying the mode and the outbound_fee.
However, the outbound_fee is currently disregarded and not processed either in the pallet or within the Gateway contract; it is solely emitted in the event.
Despite being defined in the comment as the “Fee charged to users for sending outbound messages to Polkadot”, this specific fee per channel is not currently implemented.

@vgeddes vgeddes changed the title Remove obsolete outbound_fee parameter Audit issue 7: Remove obsolete outbound_fee parameter Dec 14, 2023
Copy link
Contributor

@yrong yrong left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

codecov bot commented Dec 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6f9cfdd) 81.29% compared to head (fc20079) 81.30%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1051   +/-   ##
=======================================
  Coverage   81.29%   81.30%           
=======================================
  Files          54       54           
  Lines        2240     2241    +1     
  Branches       71       71           
=======================================
+ Hits         1821     1822    +1     
  Misses        402      402           
  Partials       17       17           
Flag Coverage Δ
rust 81.46% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@vgeddes vgeddes merged commit de51fe7 into main Dec 16, 2023
7 checks passed
@vgeddes vgeddes deleted the audit-issue-7 branch December 16, 2023 12:01
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.

4 participants