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
7 changes: 7 additions & 0 deletions src/onchain/TestArbitrage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ contract TestArbitrage is IFlashLoanRecipient, ReentrancyGuard, Ownable, Pausabl
/// @param executionTime Time taken for execution (in seconds)
event TradeCompleted(uint256 indexed tradeId, uint256 profit, uint256 gasUsed, uint256 executionTime);

/// @notice Emitted when a trade fails with detailed error information
/// @param tradeId Unique identifier for this trade
/// @param reason Error message describing the failure
/// @param step Which step of the process failed (1=first swap, 2=second swap, 3=repayment)
/// @param gasUsed Gas consumed before failure
event TradeFailed(uint256 indexed tradeId, string reason, uint8 step, uint256 gasUsed);

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