Skip to content

Commit

Permalink
Merge pull request #728 from w3f/base-fee-calulation-update
Browse files Browse the repository at this point in the history
Base fee calculation update
  • Loading branch information
Noc2 authored Jul 22, 2024
2 parents 7a4810d + e649435 commit 1abba03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/id-extrinsics.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ $$
$$

**where**
- ${A}_{{i}}$: the 32-byte address of the sender ([Definition -def-num-ref-](id-extrinsics#defn-extrinsic-address)).
- ${A}_{{i}}$ is the multi-address of the sender defined in [Definition -def-num-ref-](id-extrinsics#defn-extrinsic-address).

- ${Sig}$: the signature of the sender ([Definition -def-num-ref-](id-extrinsics#defn-extrinsic-signature)).

Expand Down
6 changes: 3 additions & 3 deletions docs/id-weights.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,15 +716,15 @@ $$

The Polkadot Runtime defines the following values:

- Base fee: 100 uDOTs
- Base fee: 1 mDOTs $(10^{-3}DOT)$. Base Fee is defined as the fee for a No-op extrinsic (for e.g., an empty System::Remark call, currently with a weight of 126 micro Seconds).

- Length fee: 0.1 uDOTs

- Weight to fee conversion:

${weight}$ fee = weight \times (100${u}{D}{O}{T}{s}\div{\left({10}\times{10}'{000}\right)}{)}$
${weight}$ fee = $weight/1.26 * (10^{-8})$ where $weight$ is in nS.

A weight of 10’000 (the smallest non-zero weight) is mapped to ${\frac{{{1}}}{{{10}}}}$ of 100 uDOT. This fee will never exceed the max size of an unsigned 128 bit integer.
A weight of 126’000 nS is mapped to 1 mDOT. This fee will never exceed the max size of an unsigned 128 bit integer.

### -sec-num- Fee Multiplier {#id-fee-multiplier}

Expand Down

0 comments on commit 1abba03

Please sign in to comment.