๐ก๏ธAudits and Security
Security Process
Updates
Bounty Board
function batchFillOrder(
Order calldata order,
ERC721Grouping[] calldata erc721Groupings
) internal {
...
if (!order.validator.meetsCriteria(address(erc721), id)) {
revert InvalidNftError(address(erc721), id);
}
// Forward NFT to benecifiary
// NOTE: reentrancy should be safe here, since we're decrementing
// the number of fills based on its later value.
erc721.safeTransferFrom(
erc721.ownerOf(id),
order.nftBeneficiary,
id
);
}
}
// Should throw if underflow
remainingFills[orderHash] -= tributeCounter;
// Payout to order filler
order.erc20.mint(msg.sender, order.tokensPerTribute * tributeCounter);
}Last updated
Was this helpful?