Skip to content

fix(fees): schedule sponsorship notes at zero - #3702

Merged
partylikeits1983 merged 10 commits into
nextfrom
fee-sponsorship-zero-schedule
Aug 27, 2026
Merged

fix(fees): schedule sponsorship notes at zero#3702
partylikeits1983 merged 10 commits into
nextfrom
fee-sponsorship-zero-schedule

Conversation

@partylikeits1983

@partylikeits1983 partylikeits1983 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • keep FEE_SPONSORSHIP in generated BasicConstantFeePolicy schedules with a zero fee by default
  • allow its default price to be overridden through custom NetworkNotePricer costs

Closes #3580.

@partylikeits1983
partylikeits1983 marked this pull request as ready for review August 24, 2026 11:46
Comment thread crates/miden-tx/src/pricer.rs Outdated

@Fumuran Fumuran 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.

Looks great, thank you! I agree that the approach which Marti suggested is better, and it avoids code complication as well: the resulting changes are super clear.

Comment thread crates/miden-tx/src/pricer.rs Outdated
Comment thread crates/miden-tx/src/pricer.rs Outdated
@partylikeits1983 partylikeits1983 self-assigned this Aug 26, 2026
@partylikeits1983 partylikeits1983 added the pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority label Aug 26, 2026

@mmagician mmagician left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think the original return type was correct, so this needs a tiny refactor, but otherwise looks great! Thanks for addressing the comments ✅

Comment thread crates/miden-tx/src/pricer.rs Outdated
Comment thread crates/miden-tx/src/pricer.rs Outdated
Comment thread crates/miden-tx/src/pricer.rs Outdated
@partylikeits1983
partylikeits1983 added this pull request to the merge queue Aug 27, 2026
Merged via the queue into next with commit e113675 Aug 27, 2026
19 checks passed
@partylikeits1983
partylikeits1983 deleted the fee-sponsorship-zero-schedule branch August 27, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define how FEE_SPONSORSHIP should appear in allowed_note_scripts and fee_schedule

3 participants