@@ -643,7 +643,7 @@ contract Manager is
643
643
// by the same amount (we call this "backflow")
644
644
_backfillOutboundAmount (nativeTransferAmount);
645
645
646
- _mintOrUnlockToRecipient (transferRecipient, nativeTransferAmount);
646
+ _mintOrUnlockToRecipient (digest, transferRecipient, nativeTransferAmount);
647
647
}
648
648
649
649
function completeInboundQueuedTransfer (bytes32 digest ) external nonReentrant whenNotPaused {
@@ -662,14 +662,20 @@ contract Manager is
662
662
delete _getInboundQueueStorage ()[digest];
663
663
664
664
// run it through the mint/unlock logic
665
- _mintOrUnlockToRecipient (queuedTransfer.recipient, queuedTransfer.amount);
665
+ _mintOrUnlockToRecipient (digest, queuedTransfer.recipient, queuedTransfer.amount);
666
666
}
667
667
668
- function _mintOrUnlockToRecipient (address recipient , NormalizedAmount memory amount ) internal {
668
+ function _mintOrUnlockToRecipient (
669
+ bytes32 digest ,
670
+ address recipient ,
671
+ NormalizedAmount memory amount
672
+ ) internal {
669
673
// calculate proper amount of tokens to unlock/mint to recipient
670
674
// denormalize the amount
671
675
uint256 denormalizedAmount = nttDenormalize (amount);
672
676
677
+ emit TransferRedeemed (digest);
678
+
673
679
if (mode == Mode.LOCKING) {
674
680
// unlock tokens to the specified recipient
675
681
IERC20 (token).safeTransfer (recipient, denormalizedAmount);
0 commit comments