From e5ac72f3c88b1a8a6336bc8a60931b498b2b5313 Mon Sep 17 00:00:00 2001 From: Mubaris NK Date: Wed, 31 Mar 2021 22:31:57 +0530 Subject: [PATCH] [Reflexer] Minor changes --- contracts/mapping/reflexer.sol | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/contracts/mapping/reflexer.sol b/contracts/mapping/reflexer.sol index c44e140c..41357972 100644 --- a/contracts/mapping/reflexer.sol +++ b/contracts/mapping/reflexer.sol @@ -15,8 +15,8 @@ interface IndexInterface { contract Helpers { - address public constant connectors = 0xD6A602C01a023B98Ecfb29Df02FBA380d3B21E0c; - address public constant instaIndex = 0x2971AdFa57b20E5a416aE5a708A8655A9c74f723; + ConnectorsInterface public constant connectors = ConnectorsInterface(0x7D53E606308A2E0A1D396F30dc305cc7f8483436); + IndexInterface public constant instaIndex = IndexInterface(0x2971AdFa57b20E5a416aE5a708A8655A9c74f723); uint public version = 1; mapping (bytes32 => address) public collateralJoinMapping; @@ -24,9 +24,7 @@ contract Helpers { event LogAddCollateralJoinMapping(address[] collateralJoin); modifier isChief { - require( - ConnectorsInterface(connectors).chief(msg.sender) || - IndexInterface(instaIndex).master() == msg.sender, "not-Chief"); + require(connectors.chief(msg.sender) || instaIndex.master() == msg.sender, "not-a-chief"); _; } @@ -49,6 +47,7 @@ contract Helpers { contract GebMapping is Helpers { string constant public name = "Reflexer-Mapping-v1"; + constructor() public { address[] memory collateralJoins = new address[](1); collateralJoins[0] = 0x2D3cD7b81c93f188F3CB8aD87c8Acc73d6226e3A; // ETH-A Join contract address