diff --git a/contracts/mainnet/connectors/automated_defi_limit_order/helpers.sol b/contracts/mainnet/connectors/automated_defi_limit_order/helpers.sol index 46425b07..bcfdecf1 100644 --- a/contracts/mainnet/connectors/automated_defi_limit_order/helpers.sol +++ b/contracts/mainnet/connectors/automated_defi_limit_order/helpers.sol @@ -9,6 +9,10 @@ abstract contract Helpers is Basic { /** * @dev Limit Order Address */ - LimitOrderInterface internal constant limitOrderContract = LimitOrderInterface(address(0)); // TODO: add Limit Order contract's address + LimitOrderInterface internal immutable limitOrderContract; + + constructor (address _limitOrderContract) { + limitOrderContract = LimitOrderInterface(_limitOrderContract); + } } \ No newline at end of file diff --git a/contracts/mainnet/connectors/automated_defi_limit_order/main.sol b/contracts/mainnet/connectors/automated_defi_limit_order/main.sol index 40859105..8fa934ad 100644 --- a/contracts/mainnet/connectors/automated_defi_limit_order/main.sol +++ b/contracts/mainnet/connectors/automated_defi_limit_order/main.sol @@ -12,6 +12,8 @@ import { Events } from "./events.sol"; abstract contract CompResolver is Events, Helpers { + constructor(address _limitOrderContract) Helpers(_limitOrderContract) {} + function create( address _tokenFrom, address _tokenTo, @@ -124,4 +126,6 @@ abstract contract CompResolver is Events, Helpers { contract ConnectV2DefiLimitOrders is CompResolver { string public constant name = "DeFi-Limit-Order-v1"; + + constructor(address _limitOrderContract) CompResolver(_limitOrderContract) {} }