Skip to content

Commit

Permalink
fix: destroy fees bulking (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebrugel committed Feb 16, 2022
1 parent ac472b4 commit 2ab7934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/NestedFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ contract NestedFactory is INestedFactory, ReentrancyGuard, OwnableProxyDelegatio
if (success) {
require(amounts[1] <= _amountToSpend, "NestedFactory::_safeSubmitOrder: Overspent");
if (_amountToSpend > amounts[1]) {
IERC20(_inputToken).safeTransfer(_msgSender(), _amountToSpend - amounts[1]);
_safeTransferWithFees(IERC20(_inputToken), _amountToSpend - amounts[1], _msgSender(), _nftId);
}
} else {
_safeTransferWithFees(IERC20(_inputToken), _amountToSpend, _msgSender(), _nftId);
Expand Down

0 comments on commit 2ab7934

Please sign in to comment.