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

[FIX] Add missing checks for transmuter's limiter (backport #554) #556

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 12, 2024

Existing implementation miss the case where token in is alloyed, it assumes that only token in weight is increasing, but if token in is alloyed, it's actually decreasing only token out's amount in the pool, resulting all other assets' weight increase.

This PR add support for such case.

Summary by CodeRabbit

  • New Features

    • Enhanced functionality for balance validation and rate limiting in the alloyed asset pool.
    • Improved clarity in the logic for handling alloyed and non-alloyed tokens.
  • Bug Fixes

    • Refined validation checks for asset weights and balances to ensure accurate processing.
  • Documentation

    • Updated comments for better understanding of balance validation conditions.

This is an automatic backport of pull request #554 done by [Mergify](https://mergify.com).

Copy link

@deividaspetraitis deividaspetraitis merged commit 8362323 into v27.x Nov 12, 2024
9 checks passed
@deividaspetraitis deividaspetraitis deleted the mergify/bp/v27.x/pr-554 branch November 12, 2024 06:35
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.

2 participants