Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💥 Remove random end field #371

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion pallets/funding/src/functions/1_application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ impl<T: Config> Pallet<T> {
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::<T>::zero(),
evaluation_round_info: EvaluationRoundInfoOf::<T> {
Expand Down
1 change: 0 additions & 1 deletion pallets/funding/src/instantiator/chain_interactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion pallets/funding/src/tests/2_evaluation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ mod start_evaluation_extrinsic {
Some(1),
Some(<TestRuntime as Config>::EvaluationRoundDuration::get()),
),
random_end_block: None,
fundraising_target_usd: project_metadata
.minimum_price
.saturating_mul_int(project_metadata.total_allocation_size),
Expand Down
2 changes: 0 additions & 2 deletions pallets/funding/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ pub mod storage_types {
pub status: ProjectStatus<BlockNumber>,
/// When the different project phases start and end
pub round_duration: BlockNumberPair<BlockNumber>,
/// Random block end for auction round
pub random_end_block: Option<BlockNumber>,
/// Fundraising target amount in USD (6 decimals)
pub fundraising_target_usd: Balance,
/// The amount of Contribution Tokens that have not yet been sold
Expand Down