Skip to content

Commit

Permalink
Fix guard
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Sep 27, 2024
1 parent c573c31 commit 02f7f95
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/ain-ocean/src/api/pool_pair/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,7 @@ pub async fn get_apr(
let loan_usd = get_yearly_reward_loan_usd(ctx, id).await?;
let total_liquidity_usd = get_total_liquidity_usd(ctx, p).await?;

if custom_usd.is_zero()
|| pct_usd.is_zero()
|| loan_usd.is_zero()
|| total_liquidity_usd.is_zero()
{
if total_liquidity_usd.is_zero() {
return Ok(PoolPairAprResponse::default());
}

Expand Down

0 comments on commit 02f7f95

Please sign in to comment.