Skip to content

Commit 6de522f

Browse files
eskimorRobert
andauthored
Configure minimum price for Kusama and Polkadot coretime (#754)
1 KSM on Kusama 10 DOT on Polkadot --------- Co-authored-by: Robert <robert@gonimo.com>
1 parent b61529b commit 6de522f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1616
- [[#711](https://github.com/polkadot-fellows/runtimes/pull/711)] Pallet-broker: add extrinsic to remove a lease ([SDK stable2503 #7026](https://github.com/paritytech/polkadot-sdk/pull/7026)).
1717
- [[#711](https://github.com/polkadot-fellows/runtimes/pull/711)] Pallet-broker: add extrinsic to remove an assignment ([SDK stable2503 #7080](https://github.com/paritytech/polkadot-sdk/pull/7080)).
1818
- [[#711](https://github.com/polkadot-fellows/runtimes/pull/711)] Pallet-broker: add extrinsic to reserve a system core without having to wait two sale boundaries ([SDK stable2503 #4273](https://github.com/paritytech/polkadot-sdk/pull/4273)).
19+
- [[#754](https://github.com/polkadot-fellows/runtimes/pull/754) Change to minimum price controller and configure minimum price of 10 DOT and 1 KSM for Coretime sales. Existing renewals will also be adjusted accordingly and are now no longer completely decoupled from the market. For details on this, please checkout [RFC-149](https://polkadot-fellows.github.io/RFCs/new/0149-rfc-1-renewal-adjustment.html).
1920

2021
### Changed
2122

system-parachains/coretime/coretime-kusama/src/coretime.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ impl CoretimeInterface for CoretimeAllocator {
322322
parameter_types! {
323323
pub const BrokerPalletId: PalletId = PalletId(*b"py/broke");
324324
pub const MinimumCreditPurchase: Balance = UNITS / 10;
325+
326+
pub const MinimumEndPrice: Balance = UNITS;
325327
}
326328

327329
pub struct SovereignAccountOf;
@@ -347,6 +349,6 @@ impl pallet_broker::Config for Runtime {
347349
type AdminOrigin = EnsureRoot<AccountId>;
348350
type SovereignAccountOf = SovereignAccountOf;
349351
type MaxAutoRenewals = ConstU32<100>;
350-
type PriceAdapter = pallet_broker::CenterTargetPrice<Balance>;
352+
type PriceAdapter = pallet_broker::MinimumPrice<Balance, MinimumEndPrice>;
351353
type MinimumCreditPurchase = MinimumCreditPurchase;
352354
}

system-parachains/coretime/coretime-polkadot/src/coretime.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ impl CoretimeInterface for CoretimeAllocator {
319319
parameter_types! {
320320
pub const BrokerPalletId: PalletId = PalletId(*b"py/broke");
321321
pub const MinimumCreditPurchase: Balance = UNITS / 10;
322+
pub const MinimumEndPrice: Balance = 10 * UNITS;
322323
}
323324

324325
pub struct SovereignAccountOf;
@@ -344,6 +345,6 @@ impl pallet_broker::Config for Runtime {
344345
type AdminOrigin = EnsureRoot<AccountId>;
345346
type SovereignAccountOf = SovereignAccountOf;
346347
type MaxAutoRenewals = ConstU32<100>;
347-
type PriceAdapter = pallet_broker::CenterTargetPrice<Balance>;
348+
type PriceAdapter = pallet_broker::MinimumPrice<Balance, MinimumEndPrice>;
348349
type MinimumCreditPurchase = MinimumCreditPurchase;
349350
}

0 commit comments

Comments
 (0)