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
8 changes: 8 additions & 0 deletions src/onchain/TestArbitrage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ contract TestArbitrage is IFlashLoanRecipient, ReentrancyGuard, Ownable, Pausabl
/// @dev When true, enables additional testing features
bool public testMode;

/// @notice Authorized addresses that can execute trades
/// @dev Prevents unauthorized access while allowing testing
mapping(address => bool) public authorizedTraders;

/// @notice Minimum flash loan amount (for testing safety)
/// @dev Prevents dust attacks and very small unprofitable trades
uint256 public minFlashAmount = 1000; // Adjustable for different tokens

//////////////////////////////////////////////////////////////
// CONSTRUCTOR //
//////////////////////////////////////////////////////////////
Expand Down
Loading