@@ -98,7 +98,7 @@ contract AsyncSwap is BaseHook, IAsyncSwapAMM {
9898
9999 function asyncOrder (PoolId poolId , address user , bool zeroForOne ) external view returns (uint256 claimable ) {
100100 AsyncFiller.State storage state = asyncOrders[poolId];
101- return state.asyncOrders [user][zeroForOne];
101+ return state.asyncOrder [user][zeroForOne];
102102 }
103103
104104 function isExecutor (PoolId poolId , address user , address executor ) external view returns (bool ) {
@@ -139,7 +139,7 @@ contract AsyncSwap is BaseHook, IAsyncSwapAMM {
139139
140140 /// TODO: Document what this does
141141 uint256 amountToFill = uint256 (amountIn);
142- uint256 claimableAmount = asyncOrders[poolId].asyncOrders [owner][zeroForOne];
142+ uint256 claimableAmount = asyncOrders[poolId].asyncOrder [owner][zeroForOne];
143143 require (amountToFill <= claimableAmount, "Max fill order limit exceed " );
144144 AsyncFiller.State storage state = asyncOrders[poolId];
145145 require (order.isExecutor (state, msg .sender ), "Caller is valid not excutor " );
@@ -155,7 +155,7 @@ contract AsyncSwap is BaseHook, IAsyncSwapAMM {
155155 currencyFill = currency0;
156156 }
157157
158- asyncOrders[poolId].asyncOrders [owner][zeroForOne] -= amountToFill;
158+ asyncOrders[poolId].asyncOrder [owner][zeroForOne] -= amountToFill;
159159 /// TODO: check if this is needed, we could just burn
160160 poolManager.transfer (owner, currencyTake.toId (), amountToFill);
161161 emit AsyncOrderFilled (poolId, owner, zeroForOne, amountToFill);
@@ -196,8 +196,8 @@ contract AsyncSwap is BaseHook, IAsyncSwapAMM {
196196
197197 /// @dev Issue 1:1 claimableAmount - pool fee to user
198198 /// @dev Add amount taken to previous claimableAmount
199- uint256 currClaimables = asyncOrders[poolId].asyncOrders [hookData.user][params.zeroForOne];
200- asyncOrders[poolId].asyncOrders [hookData.user][params.zeroForOne] = currClaimables + finalTaken;
199+ uint256 currClaimables = asyncOrders[poolId].asyncOrder [hookData.user][params.zeroForOne];
200+ asyncOrders[poolId].asyncOrder [hookData.user][params.zeroForOne] = currClaimables + finalTaken;
201201
202202 /// @dev Hook event
203203 /// @reference
0 commit comments