Skip to content

Commit

Permalink
chore: emitting batchOfferRevoked event
Browse files Browse the repository at this point in the history
  • Loading branch information
jefr90 committed Dec 16, 2024
1 parent 55bff98 commit e6da44d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/batchoffer/BatchOffer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ contract BatchOfferCreator is

// Refund Escrow
marketConfig.refund(offer.currency, offer.amount, offer.feePercentage, offer.creator);

emit BatchOfferRevoked(msg.sender, _rootHash, offer.currency, offer.amount);
}

function acceptBatchOffer(
Expand Down
7 changes: 7 additions & 0 deletions src/batchoffer/IBatchOffer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,11 @@ interface IBatchOffer {
address currency,
uint256 amount
);

event BatchOfferRevoked(
address indexed creator,
bytes32 rootHash,
address currency,
uint256 amount
);
}

0 comments on commit e6da44d

Please sign in to comment.