From 19527325f05f8550934e5e1ca13fc7f754c8ef06 Mon Sep 17 00:00:00 2001 From: Dino Pacandi Date: Tue, 26 Sep 2023 18:27:56 +0200 Subject: [PATCH] Extra rustdocs --- pallets/dynamic-evm-base-fee/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pallets/dynamic-evm-base-fee/src/lib.rs b/pallets/dynamic-evm-base-fee/src/lib.rs index 7e69a07da7..ea8c3003be 100644 --- a/pallets/dynamic-evm-base-fee/src/lib.rs +++ b/pallets/dynamic-evm-base-fee/src/lib.rs @@ -62,6 +62,9 @@ //! --> recommended _v_ value: 0.000_015 //! --> largest 's' delta: (1 - 0.25) = **0.75** //! +//! (for variable explanation please check the linked forum post above) +//! (in short: `v` - variability factor, `s` - current block fill ratio, `s*` - ideal block fill ratio) +//! //! adj = 0.000015 * (1 - 0.25) = **0.000_011_25** //! (1 + 0.000_011_25 + 0.000_011_25^2/2) = (1 + 0.000_011_25 + 0.000_000_000_063_281) = **1,000_011_250_063_281** //!