Skip to main content
6 events
when toggle format what by license comment
Jan 6, 2022 at 1:44 comment added Kenzo Agada Since DOBO takes fee on transfer, you need to use the router's swapExactTokensForTokensSupportingFeeOnTransferTokens function. [edit: ah, I see you already found this in another comment :)]
Jan 5, 2022 at 18:23 comment added LDK Richard helped me solve that issue. However, now I can only sell tiny bits of DOBO (like here: bscscan.com/tx/…) or the transaction fails (like here: bscscan.com/tx/…
Jan 5, 2022 at 16:05 comment added Kenzo Agada I am not sure if you still have this problem, but if yes, increase the gasLimit. Anyway it won't be used fully and this should circumvent this error.
Jan 5, 2022 at 15:20 comment added LDK A quick google search suggests that my gasPrice is too low, however, I doubt that given that it is currently set to 10 gwei.
Jan 5, 2022 at 15:10 comment added LDK Ah, that is great. Thank you. That also means I was trying to sell 10*10^18 DOBO although I only had ~92.000.000? When changing amountIn to amountIn = ethers.utils.parseUnits('10', 'gwei'); and changing the 1000 to amountIn as well I get a new error: "replacement fee too low (error={"code":-32000,"response":"{\"jsonrpc\":\"2.0\",\"id\":7,\"error\":{\"code\":-32000,\"message\":\"replacement transaction underpriced\"}}\n"}, method="sendTransaction", transaction="0xf8aa2585012a05f20082721c94ae2df9f [...]
Jan 5, 2022 at 14:47 history answered Kenzo Agada CC BY-SA 4.0