Skip to content

Commit

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

Expand Down

0 comments on commit a63026c

Please sign in to comment.