You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to estimate gas for a swapExactETHForTokens transaction using ethers.js v6, the code crashes abruptly if the calculated amountOutMin is higher than expected. This behavior is unexpected and makes it difficult to handle errors gracefully in the application.
Ethers Version
6.13.1
Search Terms
No response
Describe the Problem
When attempting to estimate gas for a swapExactETHForTokens transaction using ethers.js v6, the code crashes abruptly if the calculated amountOutMin is higher than expected. This behavior is unexpected and makes it difficult to handle errors gracefully in the application.
Code Snippet
Contract ABI
No response
Errors
Environment
node.js (older than v12)
Environment (Other)
Windows 10
The text was updated successfully, but these errors were encountered: