Skip to content

Commit

Permalink
feat: add purchased tokens to event
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Dec 12, 2023
1 parent d3f0fb6 commit d1d1680
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions evm/src/CatalystChainInterface.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ contract CatalystChainInterface is ICatalystChainInterface, Ownable, Bytes65 {

//-- Underwriting Events --//

event UnderwriteSwap(
event SwapUnderwritten(
bytes32 indexed identifier,
address indexed underwriter,
uint96 expiry,
address targetVault,
address toAsset,
uint256 U,
address toAccount
address toAccount,
uint256 outAmount
);

event FulfillUnderwrite(
Expand Down Expand Up @@ -792,14 +793,15 @@ contract CatalystChainInterface is ICatalystChainInterface, Ownable, Bytes65 {
ICatalystReceiver(dataTarget).onCatalystCall(purchasedTokens, customCalldata);
}

emit UnderwriteSwap(
emit SwapUnderwritten(
identifier,
msg.sender,
uint96(uint256(block.number) + uint256(maxUnderwritingDuration)),
targetVault,
toAsset,
U,
toAccount
toAccount,
purchasedTokens
);
}

Expand Down

0 comments on commit d1d1680

Please sign in to comment.