From 84cde35feccf0b5240e44d51ffe67e2b844c7593 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Rios Date: Tue, 6 Aug 2024 12:31:11 +0200 Subject: [PATCH] remove random end --- pallets/funding/src/functions/1_application.rs | 1 - pallets/funding/src/instantiator/chain_interactions.rs | 1 - pallets/funding/src/tests/2_evaluation.rs | 1 - pallets/funding/src/types.rs | 2 -- 4 files changed, 5 deletions(-) diff --git a/pallets/funding/src/functions/1_application.rs b/pallets/funding/src/functions/1_application.rs index 46470edce..22e17f37f 100644 --- a/pallets/funding/src/functions/1_application.rs +++ b/pallets/funding/src/functions/1_application.rs @@ -34,7 +34,6 @@ impl Pallet { fundraising_target_usd: fundraising_target, status: ProjectStatus::Application, round_duration: BlockNumberPair::new(None, None), - random_end_block: None, remaining_contribution_tokens: project_metadata.total_allocation_size, funding_amount_reached_usd: BalanceOf::::zero(), evaluation_round_info: EvaluationRoundInfoOf:: { diff --git a/pallets/funding/src/instantiator/chain_interactions.rs b/pallets/funding/src/instantiator/chain_interactions.rs index 513d7fba2..f95d67b27 100644 --- a/pallets/funding/src/instantiator/chain_interactions.rs +++ b/pallets/funding/src/instantiator/chain_interactions.rs @@ -263,7 +263,6 @@ impl< weighted_average_price: None, status: ProjectStatus::Application, round_duration: BlockNumberPair::new(None, None), - random_end_block: None, fundraising_target_usd: expected_metadata .minimum_price .checked_mul_int(expected_metadata.total_allocation_size) diff --git a/pallets/funding/src/tests/2_evaluation.rs b/pallets/funding/src/tests/2_evaluation.rs index c78bb93a8..17db49cb2 100644 --- a/pallets/funding/src/tests/2_evaluation.rs +++ b/pallets/funding/src/tests/2_evaluation.rs @@ -292,7 +292,6 @@ mod start_evaluation_extrinsic { Some(1), Some(::EvaluationRoundDuration::get()), ), - random_end_block: None, fundraising_target_usd: project_metadata .minimum_price .saturating_mul_int(project_metadata.total_allocation_size), diff --git a/pallets/funding/src/types.rs b/pallets/funding/src/types.rs index b8f965f8d..51132686e 100644 --- a/pallets/funding/src/types.rs +++ b/pallets/funding/src/types.rs @@ -321,8 +321,6 @@ pub mod storage_types { pub status: ProjectStatus, /// When the different project phases start and end pub round_duration: BlockNumberPair, - /// Random block end for auction round - pub random_end_block: Option, /// Fundraising target amount in USD (6 decimals) pub fundraising_target_usd: Balance, /// The amount of Contribution Tokens that have not yet been sold