Add semantically correct values, even when they don't get checked in the swap functions

This commit is contained in:
Owen
2022-02-07 01:07:27 -08:00
parent eda4491714
commit ec73ffaf27
+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);
}
}
@@ -632,7 +632,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
@@ -669,7 +669,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