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

Correctly price reverted transactions #716

@juanbono

Description

@juanbono

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__

Metadata

Metadata

Assignees

Labels

FeatureA feature that we need to work on

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions