git.delta.rocks / unique-network / refs/commits / 150e9b0efa3f

difftreelog

chore update target weight2fee

Igor Kozyrev2022-06-21parent: #503034b.patch.diff
in: master

4 files changed

modifiedruntime/common/src/constants.rsdiffbeforeafterboth
35pub const CENTIUNIQUE: Balance = 10 * MILLIUNIQUE;35pub const CENTIUNIQUE: Balance = 10 * MILLIUNIQUE;
36pub const UNIQUE: Balance = 100 * CENTIUNIQUE;36pub const UNIQUE: Balance = 100 * CENTIUNIQUE;
3737
38// Targeting 0.1 UNQ per transfer
38pub const WEIGHT_TO_FEE_COEFF: u32 = 142_688_000;39pub const WEIGHT_TO_FEE_COEFF: u32 = 207_890_902;
3940
40// Targeting 0.15 UNQ per transfer41// Targeting 0.15 UNQ per transfer via ETH
41pub const MIN_GAS_PRICE: u64 = 1_019_493_469_850;42pub const MIN_GAS_PRICE: u64 = 1_019_493_469_850;
4243
43/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.44/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.
52parameter_types! {53parameter_types! {
53 pub const DefaultSponsoringRateLimit: BlockNumber = 1 * DAYS;54 pub const DefaultSponsoringRateLimit: BlockNumber = 1 * DAYS;
5455
55 pub const TransactionByteFee: Balance = 501 * MICROUNIQUE; // Targeting 0.1 Unique per NFT transfer56 pub const TransactionByteFee: Balance = 501 * MICROUNIQUE;
56}57}
5758
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
508508
509 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {509 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
510 smallvec!(WeightToFeeCoefficient {510 smallvec!(WeightToFeeCoefficient {
511 // Targeting 0.1 Unique per NFT transfer
512 coeff_integer: WEIGHT_TO_FEE_COEFF.into(),511 coeff_integer: WEIGHT_TO_FEE_COEFF.into(),
513 coeff_frac: Perbill::zero(),512 coeff_frac: Perbill::zero(),
514 negative: false,513 negative: false,
modifiedruntime/quartz/src/lib.rsdiffbeforeafterboth
507507
508 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {508 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
509 smallvec!(WeightToFeeCoefficient {509 smallvec!(WeightToFeeCoefficient {
510 // Targeting 0.1 Unique per NFT transfer
511 coeff_integer: WEIGHT_TO_FEE_COEFF.into(),510 coeff_integer: WEIGHT_TO_FEE_COEFF.into(),
512 coeff_frac: Perbill::zero(),511 coeff_frac: Perbill::zero(),
513 negative: false,512 negative: false,
810 RelayLocation,
811 AccountId,
812 Balances,
813 (),
814 >;
815 type ResponseHandler = (); // Don't handle responses for now.809 type ResponseHandler = (); // Don't handle responses for now.
816 type SubscriptionService = PolkadotXcm;810 type SubscriptionService = PolkadotXcm;
modifiedruntime/unique/src/lib.rsdiffbeforeafterboth
506506
507 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {507 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
508 smallvec!(WeightToFeeCoefficient {508 smallvec!(WeightToFeeCoefficient {
509 // Targeting 0.1 Unique per NFT transfer
510 coeff_integer: WEIGHT_TO_FEE_COEFF.into(),509 coeff_integer: WEIGHT_TO_FEE_COEFF.into(),
511 coeff_frac: Perbill::zero(),510 coeff_frac: Perbill::zero(),
512 negative: false,511 negative: false,
809 RelayLocation,
810 AccountId,
811 Balances,
812 (),
813 >;
814 type ResponseHandler = (); // Don't handle responses for now.808 type ResponseHandler = (); // Don't handle responses for now.
815 type SubscriptionService = PolkadotXcm;809 type SubscriptionService = PolkadotXcm;