I am going to running swap transactions. At first, we are going to running an approval transaction. And then we are going to running a swap transaction. These repeat. I made the transaction data.
approval transaction data
var data = iface.encodeFunctionData('approve', [config[config.network].addresses.router, ethers.BigNumber.from("115792089237316195423570985008687907853269984665640564039457584007913129639935")]);
swap data....
....
repeat
I hope to have only one running an approval transaction.
for example
approval transaction
swap transaction
swap transaction
swap transaction
swap transaction
swap transaction
...
Do you have away?