Automatic transactions in the task loop fail when the user-inputted priorityFee is greater than the oracle based maxFee. This PR addresses this case by setting priorityFee to min(priorityFee, 25% of the oracle based maxFee) when priorityFee > maxFee for transactions in the node task loop.
This PR slightly differs from #655 because it includes:
A new type: GasSettings to consolidate related gas fields and a pointer reciever ApplyTo to apply the gas settings to opts *bind.TransactOpts
Automatic transactions in the task loop fail when the user-inputted priorityFee is greater than the oracle based maxFee. This PR addresses this case by setting priorityFee to min(priorityFee, 25% of the oracle based maxFee) when priorityFee > maxFee for transactions in the node task loop.
This PR slightly differs from #655 because it includes:
GasSettings
to consolidate related gas fields and a pointer recieverApplyTo
to apply the gas settings toopts *bind.TransactOpts
ApplyTo