From ab7ccff204bf3f665b70236e91b1bc8360ee7224 Mon Sep 17 00:00:00 2001 From: dsudit01 <79417718+dsudit01@users.noreply.github.com> Date: Mon, 5 Jun 2023 12:44:02 +0530 Subject: [PATCH] fixed linting errors in md --- EIPS/eip-6968.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/EIPS/eip-6968.md b/EIPS/eip-6968.md index aa86d0839d9f67..c1dcbd1262c720 100644 --- a/EIPS/eip-6968.md +++ b/EIPS/eip-6968.md @@ -1,10 +1,12 @@ --- eip: 6968 title: Contract Secured Revenue on an EVM based L2 -status: Draft -type: Core +description: Contract Secured Revenue on an EVM based L2 +author: Zak Cole , Zak Cole (@zscole), Kevin Owocki , Lightclient discussions-to: https://ethereum-magicians.org/t/eip-6968-generalized-csr-protocol/14178 -author: Zak Cole , Kevin Owocki , Lightclient +status: Draft +type: Standards Track +category: Core created: 2023-05-01 --- @@ -34,7 +36,7 @@ This EIP does advocate that L2s could begin to experiment with Contract Secured ### Fee Mechanism -The current EIP-1559 fee behavior is modified so that `header.base_fee_per_gas * REVENUE_SHARE_QUOTIENT` per gas is reallocated proportionally, based on gas used, to each contract executed during the transaction. +The current [EIP-1559](./eip-1559.md) fee behavior is modified so that `header.base_fee_per_gas * REVENUE_SHARE_QUOTIENT` per gas is reallocated proportionally, based on gas used, to each contract executed during the transaction. Implicitly, this means that no fees are redistributed to externally owned accounts (EOA). @@ -44,7 +46,7 @@ In order to fairly distribute the fee revenue, a new transaction-wide gas tracke When executing a block, maintain a mapping `gas_used_by_address` of `address` to `uint64`. This will track the amount of gas used by each address. For every EVM instruction that does not instantiate a new execution frame (e.g. `CALL`, `CALLCODE`, `DELEGATECALL`, `STATICCALL`, `CREATE`, and `CREATE2`), add the cost of the instruction to the address' current sum in the mapping. -For EVM instructions which do instantiate new frames, greater care must be taken to determine the cost of the instruction to the calling frame. For simplicity, this cost is defined to be the total cost of the operation minus the amount of gas passed to the child frame. The gas passed to the child frame is determined via EIP-150. The computed cost is added to the address' current sum in the mapping. +For EVM instructions which do instantiate new frames, greater care must be taken to determine the cost of the instruction to the calling frame. For simplicity, this cost is defined to be the total cost of the operation minus the amount of gas passed to the child frame. The gas passed to the child frame is determined via [EIP-150](./eip-150.md). The computed cost is added to the address' current sum in the mapping. Additionally: