near / fast-auth-signer

https://fast-auth-signer.vercel.app
MIT License
29 stars 8 forks source link

[BUG]: BNB fee wrong calculation #259

Open Pessina opened 2 weeks ago

Pessina commented 2 weeks ago

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

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