From 7693defa033d7d4eeeee26c10a772df62536eb3f Mon Sep 17 00:00:00 2001 From: malgus01 Date: Fri, 3 Oct 2025 07:06:19 -0700 Subject: [PATCH 1/3] feat: Add Profit recipient address --- src/onchain/TestArbitrage.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/onchain/TestArbitrage.sol b/src/onchain/TestArbitrage.sol index d535566..0daed57 100644 --- a/src/onchain/TestArbitrage.sol +++ b/src/onchain/TestArbitrage.sol @@ -147,6 +147,10 @@ contract TestArbitrage is IFlashLoanRecipient, ReentrancyGuard, Ownable, Pausabl /// @dev Adds security delay for emergency functions uint256 public emergencyUnlockTime; + /// @notice Profit recipient address (can be different from owner) + /// @dev Allows profit distribution to different address + address public profitRecipient; + ////////////////////////////////////////////////////////////// // CONSTRUCTOR // ////////////////////////////////////////////////////////////// From e6972fff64f8dc5e91d0ffe48fcb6c18e32f0a84 Mon Sep 17 00:00:00 2001 From: malgus01 Date: Fri, 3 Oct 2025 07:07:14 -0700 Subject: [PATCH 2/3] feat: Add ConfigurationUpdated Event --- src/onchain/TestArbitrage.sol | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/onchain/TestArbitrage.sol b/src/onchain/TestArbitrage.sol index 0daed57..22380c7 100644 --- a/src/onchain/TestArbitrage.sol +++ b/src/onchain/TestArbitrage.sol @@ -150,6 +150,22 @@ contract TestArbitrage is IFlashLoanRecipient, ReentrancyGuard, Ownable, Pausabl /// @notice Profit recipient address (can be different from owner) /// @dev Allows profit distribution to different address address public profitRecipient; + + ////////////////////////////////////////////////////////////// + // EVENTS // + ////////////////////////////////////////////////////////////// + + /// @notice Emitted when contract configuration is updated + /// @param parameter Name of the parameter changed + /// @param oldValue Previous value + /// @param newValue New value + /// @param changedBy Address that made the change + event ConfigurationUpdated( + string parameter, + uint256 oldValue, + uint256 newValue, + address changedBy + ); ////////////////////////////////////////////////////////////// // CONSTRUCTOR // From 9b0614e9b6814220723404301f1eaf8c59baa5b6 Mon Sep 17 00:00:00 2001 From: malgus01 Date: Fri, 3 Oct 2025 07:07:31 -0700 Subject: [PATCH 3/3] feat: forge fmt --- src/onchain/TestArbitrage.sol | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/onchain/TestArbitrage.sol b/src/onchain/TestArbitrage.sol index 22380c7..85d9f13 100644 --- a/src/onchain/TestArbitrage.sol +++ b/src/onchain/TestArbitrage.sol @@ -147,7 +147,7 @@ contract TestArbitrage is IFlashLoanRecipient, ReentrancyGuard, Ownable, Pausabl /// @dev Adds security delay for emergency functions uint256 public emergencyUnlockTime; - /// @notice Profit recipient address (can be different from owner) + /// @notice Profit recipient address (can be different from owner) /// @dev Allows profit distribution to different address address public profitRecipient; @@ -155,18 +155,13 @@ contract TestArbitrage is IFlashLoanRecipient, ReentrancyGuard, Ownable, Pausabl // EVENTS // ////////////////////////////////////////////////////////////// - /// @notice Emitted when contract configuration is updated + /// @notice Emitted when contract configuration is updated /// @param parameter Name of the parameter changed /// @param oldValue Previous value /// @param newValue New value /// @param changedBy Address that made the change - event ConfigurationUpdated( - string parameter, - uint256 oldValue, - uint256 newValue, - address changedBy - ); - + event ConfigurationUpdated(string parameter, uint256 oldValue, uint256 newValue, address changedBy); + ////////////////////////////////////////////////////////////// // CONSTRUCTOR // //////////////////////////////////////////////////////////////