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

Mortal conversion rate updater transactions #1257

Merged
merged 6 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix
  • Loading branch information
svyatonik committed Dec 17, 2021
commit ec02dd2b2c0b68d43089f0fb8a5368f60f9a5ba3
6 changes: 3 additions & 3 deletions relays/lib-substrate-relay/src/conversion_rate_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ use crate::{messages_lane::SubstrateMessageLane, TransactionParams};

use codec::Encode;
use relay_substrate_client::{
transaction_stall_timeout, AccountIdOf, AccountKeyPairOf, CallOf, Chain, Client,
SignParam, TransactionEra, TransactionSignScheme, UnsignedTransaction,
transaction_stall_timeout, AccountIdOf, AccountKeyPairOf, CallOf, Chain, Client, SignParam,
TransactionEra, TransactionSignScheme, UnsignedTransaction,
};
use relay_utils::metrics::F64SharedRef;
use sp_core::{Bytes, Pair};
Expand All @@ -31,7 +31,7 @@ use std::time::{Duration, Instant};
const SLEEP_DURATION: Duration = Duration::from_secs(60);

/// Duration which will almost never expire. Since changing conversion rate may require manual
/// intervention (e.g. if call is made through multisig pallet), we don't want relayer to
/// intervention (e.g. if call is made through `multisig` pallet), we don't want relayer to
/// resubmit transaction often.
const ALMOST_NEVER_DURATION: Duration = Duration::from_secs(60 * 60 * 24 * 30);

Expand Down
2 changes: 1 addition & 1 deletion relays/lib-substrate-relay/src/messages_lane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub trait SubstrateMessageLane: 'static + Clone + Debug + Send + Sync {

/// `TargetChain` tokens to `SourceChain` tokens conversion rate update builder.
///
/// If not applicale to this bridge, you may use `()` here.
/// If not applicable to this bridge, you may use `()` here.
type TargetToSourceChainConversionRateUpdateBuilder: UpdateConversionRateCallBuilder<
Self::SourceChain,
>;
Expand Down