Skip to content

Commit

Permalink
feat(estimator): Send/exec action costs (#8251)
Browse files Browse the repository at this point in the history
Add action cost estimations that measure send and exec separately in
isolation from all other costs.

These new costs do not replace existing estimations.
They are only used to inform the decision for send/exec gas split,
which today is almost always fifty-fifty. The new estiamtions show that
often times the send costs should be cheaper. But we have to be careful
before we reduce any costs because we unfortunately ignore network costs
in all our estimations. (See #8214.)

The main purpose of the new estimations is to verify the gas cost
strategy for meta transactions. (See #8114.) There, we execute the
send step twice, so we want to ensure this side of the action cost is
not undercharged. It seems to be overcharged at the moment, so we should
be safe to move forward with the proposed strategy.
  • Loading branch information
jakmeier committed Dec 22, 2022
1 parent 915b08b commit 4510472
Show file tree
Hide file tree
Showing 6 changed files with 838 additions and 5 deletions.

0 comments on commit 4510472

Please sign in to comment.