Skip to content

Commit

Permalink
use NewCoins instead of Coins
Browse files Browse the repository at this point in the history
Co-authored-by: Sishir Giri <sis1001@berkeley.edu>
  • Loading branch information
NotJeremyLiu and stackman27 authored May 30, 2023
1 parent 4c97712 commit 6c744ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/protorev/keeper/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (k Keeper) getCoinsFromPool(ctx sdk.Context, pool poolmanagertypes.PoolI, p
ctx.Logger().Error("Protorev error casting pool to concentrated pool in AfterCFMMPoolCreated hook")
return sdk.Coins{}
}
coins = sdk.Coins{sdk.NewCoin(clPool.GetToken0(), sdk.NewInt(0)), sdk.NewCoin(clPool.GetToken1(), sdk.NewInt(0))}
coins = sdk.NewCoins(sdk.NewCoin(clPool.GetToken0(), sdk.NewInt(0)), sdk.NewCoin(clPool.GetToken1(), sdk.NewInt(0)))
} else {
ctx.Logger().Error("Protorev error getting pool liquidity in AfterCFMMPoolCreated hook")
return sdk.Coins{}
Expand Down

0 comments on commit 6c744ac

Please sign in to comment.