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
{{ message }}
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.
Can't swap safemoon token for most of the time, even increase the slippage to 20%.
The root cause is that the swap code will estimate swapExactTokensForETH and swapExactTokensForETHSupportingFeeOnTransferTokens. Sometimes estimate swapExactTokensForETH will succeed because of the high slippage, but can't send the tx to chain. the error is below:
The corresponding contract code is:
the balance change all the time for this kind of tokens
So tokens which charge fees need to always estimate swapExactTokensForETHSupportingFeeOnTransferTokens and use swapExactTokensForETHSupportingFeeOnTransferTokens to swap.
Steps to Reproduce
Expected Behavior
Additional Context
The text was updated successfully, but these errors were encountered:
Bug Description
Can't swap safemoon token for most of the time, even increase the slippage to 20%.
The root cause is that the swap code will estimate
swapExactTokensForETH
andswapExactTokensForETHSupportingFeeOnTransferTokens
. Sometimesestimate swapExactTokensForETH
will succeed because of the high slippage, but can't send the tx to chain. the error is below:The corresponding contract code is:
the balance change all the time for this kind of tokens
So tokens which charge fees need to always estimate
swapExactTokensForETHSupportingFeeOnTransferTokens
and useswapExactTokensForETHSupportingFeeOnTransferTokens
to swap.Steps to Reproduce
Expected Behavior
Additional Context
The text was updated successfully, but these errors were encountered: