This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Description
The fee that will be charged is fee = Min(max_fee, consumed_resources) * configurable_factor when the configurable_factor = 1.
This will ensure that transactions will never pay more than the user signed and only for the actual resources used if possible.
The consumed_resources are the resource used for the execution of the transaction by the point that it failed:
- Cairo steps, builtins and syscalls in
__execute__ until the failure point.
- Cairo steps, builtins, syscalls, L1 messages, events and state diffs during
__validate__