Commit 369ba52
authored
Increase gas estimation buffer +50k (#101)
* Increase gas estimation buffer +50k
When gas is not provided, increase the safety margin applied to provider's estimate: change from a 10% buffer to a 20% buffer and add a fixed 50,000 gas units overhead. This reduces risk of out-of-gas failures for transactions using estimated limits.
* constant1 parent c440cd5 commit 369ba52
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
313 | | - | |
| 316 | + | |
314 | 317 | | |
315 | 318 | | |
316 | 319 | | |
| |||
0 commit comments