Skip to content

Commit

Permalink
chore: Using SECONDS_PER_BLOCK instead of static block seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Janislav committed Oct 19, 2024
1 parent 9c9d636 commit 53edef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions state-chain/pallets/cf-ingress-egress/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ use cf_chains::{
use cf_primitives::{
Asset, AssetAmount, BasisPoints, Beneficiaries, BoostPoolTier, BroadcastId, ChannelId,
DcaParameters, EgressCounter, EgressId, EpochIndex, ForeignChain, PrewitnessedDepositId,
SwapRequestId, ThresholdSignatureRequestId, TransactionHash, SWAP_DELAY_BLOCKS,
SwapRequestId, ThresholdSignatureRequestId, TransactionHash, SECONDS_PER_BLOCK,
SWAP_DELAY_BLOCKS,
};
use cf_runtime_utilities::log_or_panic;
use cf_traits::{
Expand Down Expand Up @@ -64,8 +65,7 @@ use sp_std::{
};
pub use weights::WeightInfo;

// 1 hour.
const TAINTED_TX_EXPIRATION_BLOCKS: u32 = 600;
const TAINTED_TX_EXPIRATION_BLOCKS: u32 = 3600 / SECONDS_PER_BLOCK as u32;

#[derive(Clone, Debug, PartialEq, Eq, Encode, Decode, TypeInfo)]
pub enum BoostStatus<ChainAmount> {
Expand Down

0 comments on commit 53edef2

Please sign in to comment.