Skip to content

Commit

Permalink
define AdjustmentVariable Blobs Fees Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriele-0201 authored and rphmeier committed Dec 28, 2023
1 parent ecc6306 commit 796f883
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sugondat-chain/runtimes/sugondat-kusama/src/fee_adjustment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ parameter_types! {

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

0 comments on commit 796f883

Please sign in to comment.