Skip to content

Commit 0747b60

Browse files
committedDec 19, 2024·
just unbonding_len

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎crates/relayer/src/chain/namada.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ impl NamadaChain {
158158
let (value, _) = self.query(key, QueryHeight::Latest, IncludeProof::No)?;
159159
let epoch_duration =
160160
EpochDuration::try_from_slice(&value[..]).map_err(NamadaError::borsh_decode)?;
161-
let unbonding_period =
162-
pos_params.withdrawable_epoch_offset() * epoch_duration.min_duration.0;
161+
let unbonding_period = pos_params.unbonding_len * epoch_duration.min_duration.0;
163162
Ok(Duration::from_secs(unbonding_period))
164163
}
165164

0 commit comments

Comments
 (0)
Please sign in to comment.