Skip to content

Commit

Permalink
fix unbonding period
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Dec 5, 2024
1 parent 29fab66 commit 10bdc1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/relayer/src/chain/namada.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 10bdc1a

Please sign in to comment.