From a63026ce5259d0dc150fd21c2cd2a36cc1dbd3eb Mon Sep 17 00:00:00 2001 From: yito88 Date: Fri, 6 Dec 2024 10:32:30 +0100 Subject: [PATCH] use pos_params.withdrawable_epoch_offset --- crates/relayer/src/chain/namada.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/relayer/src/chain/namada.rs b/crates/relayer/src/chain/namada.rs index 8800134cc4..1ba584e1eb 100644 --- a/crates/relayer/src/chain/namada.rs +++ b/crates/relayer/src/chain/namada.rs @@ -159,7 +159,7 @@ impl NamadaChain { let epoch_duration = EpochDuration::try_from_slice(&value[..]).map_err(NamadaError::borsh_decode)?; let unbonding_period = - (pos_params.pipeline_len + pos_params.unbonding_len) * epoch_duration.min_duration.0; + pos_params.withdrawable_epoch_offset() * epoch_duration.min_duration.0; Ok(Duration::from_secs(unbonding_period)) }