Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/onchain/TestArbitrage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,31 @@ contract TestArbitrage is IFlashLoanRecipient, ReentrancyGuard, Ownable, Pausabl
// EVENTS //
//////////////////////////////////////////////////////////////

/// @notice Emitted when a trade is initiated
/// @param tradeId Unique identifier for this trade
/// @param tokenIn Input token address
/// @param tokenOut Output token address
/// @param flashAmount Amount being flash loaned
/// @param router1 First router address
/// @param router2 Second router address
/// @param initiator Address that initiated the trade
event TradeInitiated(
uint256 indexed tradeId,
address indexed tokenIn,
address indexed tokenOut,
uint256 flashAmount,
address router1,
address router2,
address initiator
);

/// @notice Emitted when a trade completes successfully
/// @param tradeId Unique identifier for this trade
/// @param profit Net profit from the arbitrage
/// @param gasUsed Total gas consumed
/// @param executionTime Time taken for execution (in seconds)
event TradeCompleted(uint256 indexed tradeId, uint256 profit, uint256 gasUsed, uint256 executionTime);

/// @notice Emitted when contract configuration is updated
/// @param parameter Name of the parameter changed
/// @param oldValue Previous value
Expand Down
Loading