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

[BUG]: BNB fee wrong calculation #259

Open
Pessina opened this issue Jun 21, 2024 · 0 comments
Open

[BUG]: BNB fee wrong calculation #259

Pessina opened this issue Jun 21, 2024 · 0 comments
Assignees

Comments

@Pessina
Copy link
Collaborator

Pessina commented Jun 21, 2024

We are experiencing an issue with the fee calculation for multichain BNB transactions. The error message indicates a wrong fee calculation, resulting in the following error and making transaction outcomes unpredictable. Sometimes the transaction is successful, while other times it fails.

Transaction execution failed: Error: replacement fee too low (transaction="0x02f8726101841ca6ef318502d3cd3db1825208947f780c57d846501de4824046ef4c503ce1c8eaf987038d7ea4c6800080c080a03fb2d04a9301af1b1dc8a59557f589799e909b5e5475973d9b13a9dcc16d2929a02dfdfb287fe01ec86d3241f49fae3e9715a5969e0f250545127ef0d397a93182", info={ "error": { "code": -32000, "message": "replacement transaction underpriced" } }

Steps to Reproduce

  • Initiate a multichain BNB transaction.

  • Observe the fee calculation and transaction execution.

Note that the transaction sometimes succeeds and sometimes fails with the above error message.

Expected Behavior

The transaction fee should be correctly calculated, ensuring consistent and predictable transaction outcomes.

Actual Behavior

The transaction fee is sometimes calculated incorrectly, leading to the error: replacement transaction underpriced. This causes transactions to fail unpredictably.

Possible Solution

  • Review and correct the fee calculation logic to ensure that the replacement fee is always sufficiently high to prevent the REPLACEMENT_UNDERPRICED error.

  • Implement better error handling to provide more informative feedback when the transaction fails due to fee issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant