Use different intrinsic-gas for fee-currencies in gas-estimation#356
Conversation
I'm trying to understand if there is an easy way to do this without a refactor that will increase the codediff, mostly because we need to mock or set the contracts for erc20 debit and credits |
|
Unittests might be hard, but we have fee currencies available in the e2e tests. Maybe you can reproduce the original problem there. |
Yes, I thought it was going to be harder with the e2e, but found some examples that are similar and that's my take now. Thanks! |
palango
left a comment
There was a problem hiding this comment.
Short-circuit for gasEstimation of txs that transfer Celo, with the gas paid with a different feeCurrency
Avoid unnecessary contract calls for rates (every run was calculating it)
For me it looks the other way around
palango
left a comment
There was a problem hiding this comment.
Bugfix with a nice performance improvement 🎉
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
#356) Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls [squash] Use different intrinsic-gas for fee-currencies in gas-estimation (#356)
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
…ion (#356) Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
…ion (#356) Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
…ion (#356) Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Refactor gasestimator. Cleaner and avoid unnecessary contract calls
Short-circuit for gasEstimation of txs that transfer Celo, with the gas paid with a different feeCurrency
Avoid unnecessary contract calls for rates (every run was calculating it)
Refactor to have the gasestimator self-contained (have the feeCurrency balance calculated inside the gas estimator)
Solves #246
Also: