Open maooricio opened 2 years ago
Having the same issue, were you able to solve it?
No yet, I am still waiting for an answer
was an error on my side, i didn't have enough funds for swapping
It worked to you? If so, would you please share your code in order to see what is wrong with mine? Or do you see something wrong in the code that I shared?
variable names might be hard to see but generally the same other than maxPriorityFeePerGas and maxFeePerGas. what went wrong for me was i didn't have enough funds in the separate swap contract i was using
const baseFeePerGas = block.baseFeePerGas;
const maxBaseFeePerGas = FlashbotsBundleProvider.getMaxBaseFeeInFutureBlock(
baseFeePerGas,
1
);
Hi, well I don't know if this provider is only for transfers transactions, if so, my question doesn't have a point. But, if this module was built to support contract interactions so I want to know if I am doing something wrong. I have the following code:
The method
signBundle
always returnbody="{\"error\":{\"message\":\"bundle used too little gas, must use at least 42000\"}}"
, no matter if I increase the gas limit of the transaction. The data of the transaction is a swap of a DEX router. What am I doing wron? In advance thanks