rocket-pool / smartnode

The CLI package for Rocket Pool smart nodes.
GNU General Public License v3.0
149 stars 112 forks source link

Handle a case where priorityFee > maxFee in the task loop #655

Closed thomaspanf closed 2 months ago

thomaspanf commented 2 months ago

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.

For example: automatically initializing vote power, defending pDAO proposals, bond reductions and so on.

The change is also applied to watchtower task process-penalties.go