Skip to content

Commit

Permalink
fix: merge conflict (#5199)
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn authored May 17, 2023
1 parent 4a8c846 commit 8e64ed4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/concentrated-liquidity/swaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ func (k Keeper) computeOutAmtGivenIn(

hasPositionInPool, err := k.HasAnyPositionForPool(ctx, poolId)
if err != nil {
return sdk.Coin{}, sdk.Coin{}, sdk.Int{}, sdk.Dec{}, sdk.Dec{}, err
return sdk.Coin{}, sdk.Coin{}, 0, sdk.Dec{}, sdk.Dec{}, err
}
if !hasPositionInPool {
return sdk.Coin{}, sdk.Coin{}, sdk.Int{}, sdk.Dec{}, sdk.Dec{}, types.NoSpotPriceWhenNoLiquidityError{PoolId: poolId}
return sdk.Coin{}, sdk.Coin{}, 0, sdk.Dec{}, sdk.Dec{}, types.NoSpotPriceWhenNoLiquidityError{PoolId: poolId}
}

asset0 := p.GetToken0()
Expand Down Expand Up @@ -435,10 +435,10 @@ func (k Keeper) computeInAmtGivenOut(

hasPositionInPool, err := k.HasAnyPositionForPool(ctx, poolId)
if err != nil {
return writeCtx, sdk.Coin{}, sdk.Coin{}, sdk.Int{}, sdk.Dec{}, sdk.Dec{}, err
return sdk.Coin{}, sdk.Coin{}, 0, sdk.Dec{}, sdk.Dec{}, err
}
if !hasPositionInPool {
return writeCtx, sdk.Coin{}, sdk.Coin{}, sdk.Int{}, sdk.Dec{}, sdk.Dec{}, types.NoSpotPriceWhenNoLiquidityError{PoolId: poolId}
return sdk.Coin{}, sdk.Coin{}, 0, sdk.Dec{}, sdk.Dec{}, types.NoSpotPriceWhenNoLiquidityError{PoolId: poolId}
}

asset0 := p.GetToken0()
Expand Down

0 comments on commit 8e64ed4

Please sign in to comment.