The gas limit being used in metamask is extremely close to the gasUsed for the transaction. So close that the optimization in Maker's drip() causes an issue due to conditional execution. Implement something like:
Estimate gas + 30%
No less than 250K, no more than 5M
If estimate >5M, error/warn user
The gas limit being used in metamask is extremely close to the gasUsed for the transaction. So close that the optimization in Maker's drip() causes an issue due to conditional execution. Implement something like:
Estimate gas + 30% No less than 250K, no more than 5M If estimate >5M, error/warn user