Keydonix / liquid-long

The Unlicense
8 stars 1 forks source link

Gas Limit Buffer for Open Position #71

Closed epheph closed 5 years ago

epheph commented 5 years ago

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