Skip to content

Commit

Permalink
feat(estimator): Send/exec action costs
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 near#8214.)

The main purpose of the new estimations is to verify the gas cost
strategy for meta transactions. (See near#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 20, 2022
1 parent 263839d commit 16e4bc8
Show file tree
Hide file tree
Showing 6 changed files with 813 additions and 6 deletions.
Loading

0 comments on commit 16e4bc8

Please sign in to comment.