mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
updating limit order contract via constructor
This commit is contained in:
parent
e186f7e174
commit
25aec3ce5c
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user