Skip to content

Commit

Permalink
minor dispenseLock refactor (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
YouStillAlive authored Dec 19, 2024
1 parent 0d191d0 commit 967aed8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion contracts/DispenserInternal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ abstract contract DispenserInternal is DispenserState {
if (data[i].params.length == 0) revert ZeroParamsLength();
amountTaken += _nftIterator(tokenPoolId, receiver, data[i]);
}
_finalizeDeal(tokenPoolId, receiver, amountTaken);
}

/// @notice Iterates through the NFTs and dispenses them from the pool.
Expand Down
1 change: 1 addition & 0 deletions contracts/DispenserProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ contract DispenserProvider is DispenserModifiers {
isValidSignature(poolId, validUntil, receiver, data, signature)
{
uint256 amountTaken = _handleSimpleNFTs(poolId, receiver, data);
_finalizeDeal(poolId, receiver, amountTaken);

emit TokensDispensed(
poolId,
Expand Down

0 comments on commit 967aed8

Please sign in to comment.