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 committed Dec 24, 2023
1 parent 0b83f5f commit 5398c0b
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, 1000_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: Test MinimumMultiplierBlockSize works with AdjustmentVariableBlockSize and it's not too low
pub MinimumMultiplierBlockSize: Multiplier = Multiplier::saturating_from_rational(1, 10u128);
pub MaximumMultiplierBlockSize: Multiplier = Bounded::max_value();
}
Expand Down

0 comments on commit 5398c0b

Please sign in to comment.