Skip to content

Align EVM value and fee accounting - #5436

Open
mpapierski wants to merge 3 commits into
casper-network:feat-evmfrom
mpapierski:evm-align-evm-value-and-fee-accounting
Open

Align EVM value and fee accounting#5436
mpapierski wants to merge 3 commits into
casper-network:feat-evmfrom
mpapierski:evm-align-evm-value-and-fee-accounting

Conversation

@mpapierski

Copy link
Copy Markdown
Collaborator

Keep EVM execution denominated in wei while purse balances remain in motes. Scale balances when they enter revm and round final balances only when writing them back. Report aggregate whole-mote dust in ExecutionOutcome for a later supply-burning step.

Reject fractional-mote values for signed transactions while preserving arbitrary wei in speculative calls.

Reserve the signed maximum gas fee, charge successful and reverted execution according to gas used, and apply the configured Casper refund and fee policies. Exceptional halts continue to consume the full gas limit.

Accept dynamic-fee transactions when their effective priority fee is zero, including the fallback transaction shape produced by MetaMask. Also lower the configured EVM base fee to make ordinary transfers and full blocks economically practical.

Keep EVM execution denominated in wei while purse balances remain in
motes. Scale balances when they enter revm and round final balances only
when writing them back. Report aggregate whole-mote dust
in ExecutionOutcome for a later supply-burning step.

Reject fractional-mote values for signed transactions while preserving
arbitrary wei in speculative calls.

Reserve the signed maximum gas fee, charge successful and reverted
execution according to gas used, and apply the configured Casper refund
and fee policies. Exceptional halts continue to consume the full gas
limit.

Accept dynamic-fee transactions when their effective priority fee is
zero, including the fallback transaction shape produced by MetaMask.
Also lower the configured EVM base fee to make ordinary transfers and
full blocks economically practical.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant