Skip to content

Commit

Permalink
just unbonding_len
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Dec 19, 2024
1 parent a63026c commit 0747b60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/relayer/src/chain/namada.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ 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.withdrawable_epoch_offset() * epoch_duration.min_duration.0;
let unbonding_period = pos_params.unbonding_len * epoch_duration.min_duration.0;
Ok(Duration::from_secs(unbonding_period))
}

Expand Down

0 comments on commit 0747b60

Please sign in to comment.