Skip to content

Commit 796f883

Browse files
gabriele-0201rphmeier
authored andcommitted
define AdjustmentVariable Blobs Fees Adjustments
1 parent ecc6306 commit 796f883

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sugondat-chain/runtimes/sugondat-kusama/src/fee_adjustment.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ parameter_types! {
3232

3333
pub storage NextLengthMultiplier: Multiplier = Multiplier::saturating_from_integer(1);
3434
pub storage TargetBlockSize: Perquintill = Perquintill::from_percent(16); // 0.8MiB
35-
// TODO: update those value accordingly with https://github.com/thrumdev/blobs/issues/16
36-
pub AdjustmentVariableBlockSize: Multiplier = Multiplier::saturating_from_rational(75, 1_000_000);
35+
// v = p / k * (1 - s*) = 0.3 / (300 * (1 - 0.16))
36+
// at most 30% (=p) fees variation in one hour, 300 blocks (=k)
37+
pub AdjustmentVariableBlockSize: Multiplier = Multiplier::saturating_from_rational(1, 840);
38+
// TODO: decide the value of MinimumMultiplierBlockSize, https://github.com/thrumdev/blobs/issues/154
3739
pub MinimumMultiplierBlockSize: Multiplier = Multiplier::saturating_from_rational(1, 10u128);
3840
pub MaximumMultiplierBlockSize: Multiplier = Bounded::max_value();
3941
}

0 commit comments

Comments
 (0)