From 7e844a3230abe09a0a3fc7646c43ef2c1377e8c9 Mon Sep 17 00:00:00 2001 From: ALPAC-4 Date: Thu, 19 Dec 2024 15:58:00 +0900 Subject: [PATCH] fix: fix balance condition --- precompile/modules/initia_stdlib/sources/minitswap.move | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/precompile/modules/initia_stdlib/sources/minitswap.move b/precompile/modules/initia_stdlib/sources/minitswap.move index 01da242a..a8eb16a6 100644 --- a/precompile/modules/initia_stdlib/sources/minitswap.move +++ b/precompile/modules/initia_stdlib/sources/minitswap.move @@ -1475,7 +1475,7 @@ module initia_std::minitswap { let uinit_pool_balance = coin::balance(pool_addr, init_metadata()); assert!( - uinit_pool_balance > arb_info.ibc_op_init_sent, + uinit_pool_balance >= arb_info.ibc_op_init_sent, error::invalid_state(ENOT_ENOUGH_BALANCE) );