Skip to content

Commit

Permalink
fix: issue with preventing provide single side liquidity on stable pair
Browse files Browse the repository at this point in the history
  • Loading branch information
afsardo committed Aug 16, 2023
1 parent 7e0dc84 commit 98aad87
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/astroport/pair_stable/provide.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 98aad87

Please sign in to comment.