From 10bdc1a6e73ae03fad29e1578cf67cbbc6218bf0 Mon Sep 17 00:00:00 2001 From: yito88 Date: Thu, 5 Dec 2024 23:08:24 +0100 Subject: [PATCH] fix unbonding period --- crates/relayer/src/chain/namada.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/relayer/src/chain/namada.rs b/crates/relayer/src/chain/namada.rs index 4a362764d1..8800134cc4 100644 --- a/crates/relayer/src/chain/namada.rs +++ b/crates/relayer/src/chain/namada.rs @@ -158,7 +158,8 @@ impl NamadaChain { let (value, _) = self.query(key, QueryHeight::Latest, IncludeProof::No)?; let epoch_duration = EpochDuration::try_from_slice(&value[..]).map_err(NamadaError::borsh_decode)?; - let unbonding_period = pos_params.pipeline_len * epoch_duration.min_duration.0; + let unbonding_period = + (pos_params.pipeline_len + pos_params.unbonding_len) * epoch_duration.min_duration.0; Ok(Duration::from_secs(unbonding_period)) }