Merge branch 'audit-fix/avoid-utilizing' into all-audit-fixes

This commit is contained in:
Owen
2022-02-07 16:16:27 -08:00
+4 -4
View File
@@ -367,7 +367,7 @@ contract LSSVMRouter {
// So we just send that much
remainingValue -= swapList[i].pair.swapTokenForAnyNFTs{
value: pairCost
}(swapList[i].numItems, nftRecipient, false, address(0));
}(swapList[i].numItems, nftRecipient, true, msg.sender);
}
}
@@ -414,7 +414,7 @@ contract LSSVMRouter {
// So we just send that much
remainingValue -= swapList[i].pair.swapTokenForSpecificNFTs{
value: pairCost
}(swapList[i].nftIds, nftRecipient, false, address(0));
}(swapList[i].nftIds, nftRecipient, true, msg.sender);
}
}
@@ -640,7 +640,7 @@ contract LSSVMRouter {
// because otherwise the deduction from remainingValue will fail
remainingValue -= swapList[i].pair.swapTokenForAnyNFTs{
value: pairCost
}(swapList[i].numItems, nftRecipient, false, address(0));
}(swapList[i].numItems, nftRecipient, true, msg.sender);
}
// Return remaining value to sender
@@ -677,7 +677,7 @@ contract LSSVMRouter {
// because otherwise the deduction from remainingValue will fail
remainingValue -= swapList[i].pair.swapTokenForSpecificNFTs{
value: pairCost
}(swapList[i].nftIds, nftRecipient, false, address(0));
}(swapList[i].nftIds, nftRecipient, true, msg.sender);
}
// Return remaining value to sender