Skip to content

Conversation

grarco
Copy link
Collaborator

@grarco grarco commented Oct 1, 2025

Describe your changes

Closes #4789.

Modifies apply_conversion to skip conversions that don't carry any rewards (i.e. conversions that only update the epoch of the asset).

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes
  • If this PR requires changes to the docs or specs, a corresponding PR is opened in the namada-docs repo
    • Relevant PR if applies:
  • If this PR affects services such as namada-indexer or namada-masp-indexer, a corresponding PR is opened in that repo
    • Relevant PR if applies:

@grarco grarco requested a review from sug0 October 1, 2025 16:22
@github-actions github-actions bot added the backport-libs-0.251 Backport libraries to 0.251 maintenance branch label Oct 1, 2025
Copy link
Contributor

mergify bot commented Oct 1, 2025

🧪 CI Insights

Here's what we observed from your CI run for bc4f7f8.

🟢 All jobs passed!

But CI Insights is watching 👀

@grarco
Copy link
Collaborator Author

grarco commented Oct 2, 2025

Putting this back to draft as it needs some more work

@grarco grarco marked this pull request as draft October 2, 2025 08:09
@grarco grarco force-pushed the grarco/no-zero-reward-convs branch from d2b87fb to 2813392 Compare October 3, 2025 18:42
@grarco grarco marked this pull request as ready for review October 3, 2025 18:42
@grarco
Copy link
Collaborator Author

grarco commented Oct 6, 2025

@sug0 I've fixed a bug and improved the tests, this is now ready for review

output: &mut I128Sum,
) -> Result<(), eyre::Error> {
// We do not need to convert negative values
// We do not need to convert non-positive values
Copy link
Collaborator

Choose a reason for hiding this comment

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

why lol

@tzemanovic tzemanovic added the backport-201.0 Backport to app 201.0 maintenance branch label Oct 8, 2025
Copy link

codecov bot commented Oct 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sug0 sug0 added the merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass label Oct 8, 2025
@mergify mergify bot added the queued label Oct 8, 2025
mergify bot added a commit that referenced this pull request Oct 8, 2025
@mergify mergify bot merged commit e3e492d into main Oct 8, 2025
27 checks passed
@mergify mergify bot deleted the grarco/no-zero-reward-convs branch October 8, 2025 15:01
@mergify mergify bot removed the queued label Oct 8, 2025
mergify bot added a commit that referenced this pull request Oct 9, 2025
mergify bot added a commit that referenced this pull request Oct 9, 2025
…pr-4883

Skip conversions with no rewards (backport #4883)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-201.0 Backport to app 201.0 maintenance branch backport-libs-0.251 Backport libraries to 0.251 maintenance branch MASP merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass non-breaking-change SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid 0 rewards conversions in MASP transactions

3 participants