From 05366eb72523a91a1723ddbd47493403087a76d5 Mon Sep 17 00:00:00 2001 From: Ava Howell Date: Tue, 26 Mar 2024 14:28:33 -0700 Subject: [PATCH] pcli: fix ics20 withdrawal timeout rounding --- crates/bin/pcli/src/command/tx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bin/pcli/src/command/tx.rs b/crates/bin/pcli/src/command/tx.rs index 8e4d1356b2..2803747423 100644 --- a/crates/bin/pcli/src/command/tx.rs +++ b/crates/bin/pcli/src/command/tx.rs @@ -1064,7 +1064,7 @@ impl TxCmd { } // round to the nearest 10 minutes - timeout_timestamp += timeout_timestamp % 600_000_000_000; + timeout_timestamp += 600_000_000_000 - (timeout_timestamp % 600_000_000_000); fn parse_denom_and_amount(value_str: &str) -> anyhow::Result<(Amount, Metadata)> { let denom_re = Regex::new(r"^([0-9.]+)(.+)$").context("denom regex invalid")?;