@@ -70,7 +70,7 @@ func (k Keeper) JoinPoolNoSwap(
7070 params := k .GetParams (ctx )
7171 takerFees := k .parameterKeeper .GetParams (ctx ).GetBigDecTakerFees ()
7272 snapshot := k .GetPoolWithAccountedBalance (ctx , pool .PoolId )
73- tokensJoined , sharesOut , _ , weightBalanceBonus , swapFee , takerFeesFinal , virtualSwaps , err := pool .JoinPool (ctx , snapshot , k .oracleKeeper , k .accountedPoolKeeper , tokensIn , params , takerFees )
73+ tokensJoined , sharesOut , _ , weightBalanceBonus , swapFee , takerFeesFinal , swapInfos , err := pool .JoinPool (ctx , snapshot , k .oracleKeeper , k .accountedPoolKeeper , tokensIn , params , takerFees )
7474 if err != nil {
7575 return nil , sdkmath .ZeroInt (), err
7676 }
@@ -83,7 +83,7 @@ func (k Keeper) JoinPoolNoSwap(
8383 // slippage will be 0 as tokensIn.Len() != 1
8484 slippageCoins := sdk.Coins {}
8585
86- err = k .ApplyJoinPoolStateChange (ctx , pool , sender , sharesOut , tokensJoined , weightBalanceBonus , takerFeesFinal , swapFee , slippageCoins , virtualSwaps )
86+ err = k .ApplyJoinPoolStateChange (ctx , pool , sender , sharesOut , tokensJoined , weightBalanceBonus , takerFeesFinal , swapFee , slippageCoins , swapInfos )
8787 if err != nil {
8888 return nil , sdkmath.Int {}, err
8989 }
@@ -100,7 +100,7 @@ func (k Keeper) JoinPoolNoSwap(
100100 takerFees := k .parameterKeeper .GetParams (ctx ).GetBigDecTakerFees ()
101101 // on oracle pool, full tokenInMaxs are used regardless shareOutAmount
102102 snapshot := k .GetPoolWithAccountedBalance (ctx , pool .PoolId )
103- tokensJoined , sharesOut , slippage , weightBalanceBonus , swapFee , takerFeesFinal , virtualSwaps , err := pool .JoinPool (ctx , snapshot , k .oracleKeeper , k .accountedPoolKeeper , tokenInMaxs , params , takerFees )
103+ tokensJoined , sharesOut , slippage , weightBalanceBonus , swapFee , takerFeesFinal , swapInfos , err := pool .JoinPool (ctx , snapshot , k .oracleKeeper , k .accountedPoolKeeper , tokenInMaxs , params , takerFees )
104104 if err != nil {
105105 return nil , sdkmath .ZeroInt (), err
106106 }
@@ -148,7 +148,7 @@ func (k Keeper) JoinPoolNoSwap(
148148 shareOutAmount , sharesOut ))
149149 }
150150
151- err = k .ApplyJoinPoolStateChange (ctx , pool , sender , sharesOut , tokensJoined , weightBalanceBonus , takerFeesFinal , swapFee , slippageCoins , virtualSwaps )
151+ err = k .ApplyJoinPoolStateChange (ctx , pool , sender , sharesOut , tokensJoined , weightBalanceBonus , takerFeesFinal , swapFee , slippageCoins , swapInfos )
152152 if err != nil {
153153 return nil , sdkmath.Int {}, err
154154 }
0 commit comments