Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 450,
spec_version: 451,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -1330,8 +1330,8 @@ impl pallet_crowdloan::Config for Runtime {
parameter_types! {
pub const LimitOrdersPalletId: PalletId = PalletId(*b"bt/limit");
pub const LimitOrdersMaxOrdersPerBatch: u32 = 100;
/// Provider records stay drawable for 7 days.
pub const LimitOrdersLinkedOutputTtl: u64 = 7 * 24 * 60 * 60 * 1000;
/// Provider records stay drawable for the 180-day advanced-order GTC lifetime.
pub const LimitOrdersLinkedOutputTtl: u64 = 180 * 24 * 60 * 60 * 1000;
}

pub struct LimitOrdersPalletHotkey;
Expand Down Expand Up @@ -2695,3 +2695,8 @@ fn test_into_evm_balance_overflow() {
let result = SubtensorEvmBalanceConverter::into_evm_balance(substrate_balance);
assert_eq!(result, Some(expected_evm_balance)); // Should return the scaled value
}

#[test]
fn linked_output_ttl_covers_advanced_order_gtc_lifetime() {
assert_eq!(LimitOrdersLinkedOutputTtl::get(), 180 * 24 * 60 * 60 * 1000);
}