From 98aad871037ea083502aafda575f360cacdeca88 Mon Sep 17 00:00:00 2001 From: afsardo Date: Wed, 16 Aug 2023 07:18:48 +0100 Subject: [PATCH] fix: issue with preventing provide single side liquidity on stable pair --- src/astroport/pair_stable/provide.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/astroport/pair_stable/provide.rs b/src/astroport/pair_stable/provide.rs index a254a41..9b185f8 100644 --- a/src/astroport/pair_stable/provide.rs +++ b/src/astroport/pair_stable/provide.rs @@ -72,10 +72,6 @@ fn compute_provide( next_amp_time: u64, next_amp: u64, ) -> Result<(Uint128, Decimal, bool), ContractError> { - if deposits[0].is_zero() || deposits[1].is_zero() { - return Err(ContractError::InvalidZeroAmount {}); - } - let amp = compute_current_amp(block_time, init_amp_time, init_amp, next_amp_time, next_amp)?; let mut non_zero_flag = false;