@@ -255,9 +255,9 @@ func (h *Hook) BeforeSwap(params *uniswapv4.BeforeSwapParams) (*uniswapv4.Before
255255 if (params .ZeroForOne && currentActiveBalance1 .IsZero ()) ||
256256 (! params .ZeroForOne && currentActiveBalance0 .IsZero ()) {
257257 return & uniswapv4.BeforeSwapResult {
258- DeltaSpecific : params .AmountSpecified ,
259- DeltaUnSpecific : bignumber .ZeroBI ,
260- SwapInfo : swapInfo ,
258+ DeltaSpecified : params .AmountSpecified ,
259+ DeltaUnspecified : bignumber .ZeroBI ,
260+ SwapInfo : swapInfo ,
261261 }, nil
262262 }
263263
@@ -459,10 +459,10 @@ func (h *Hook) BeforeSwap(params *uniswapv4.BeforeSwapParams) (*uniswapv4.Before
459459 Sub (outputAmount , curatorFeeAmount )
460460
461461 actualInputAmount := u256 .Max (amountSpecified , inputAmount )
462- result .DeltaSpecific = actualInputAmount .ToBig ()
462+ result .DeltaSpecified = actualInputAmount .ToBig ()
463463
464464 outputAmountInt := outputAmount .ToBig ()
465- result .DeltaUnSpecific = outputAmountInt .Neg (outputAmountInt )
465+ result .DeltaUnspecified = outputAmountInt .Neg (outputAmountInt )
466466
467467 hookHandleSwapInputAmount .Set (inputAmount )
468468 hookHandleSwapOutputAmount .Add (outputAmount , hookFeesAmount )
@@ -502,10 +502,10 @@ func (h *Hook) BeforeSwap(params *uniswapv4.BeforeSwapParams) (*uniswapv4.Before
502502 inputAmount .Add (inputAmount , swapFeeAmount ).
503503 Add (inputAmount , hookFeesAmount ).
504504 Add (inputAmount , curatorFeeAmount )
505- result .DeltaUnSpecific = inputAmount .ToBig ()
505+ result .DeltaUnspecified = inputAmount .ToBig ()
506506
507507 actualOutputAmount := u256 .Min (amountSpecified , outputAmount ).ToBig ()
508- result .DeltaSpecific = actualOutputAmount .Neg (actualOutputAmount )
508+ result .DeltaSpecified = actualOutputAmount .Neg (actualOutputAmount )
509509
510510 hookHandleSwapOutputAmount .Set (outputAmount )
511511 hookHandleSwapInputAmount .Sub (inputAmount , hookFeesAmount )
0 commit comments