From 09eb9a409dcc6dae47a0d582625b6a299540a2ad Mon Sep 17 00:00:00 2001 From: Sowmayjain Date: Mon, 1 Apr 2019 01:15:58 +0530 Subject: [PATCH] Removed getPriceFeedAddress address. --- contracts/ProxyLogics/InstaMaker.sol | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/contracts/ProxyLogics/InstaMaker.sol b/contracts/ProxyLogics/InstaMaker.sol index 8544910..8e94a8e 100644 --- a/contracts/ProxyLogics/InstaMaker.sol +++ b/contracts/ProxyLogics/InstaMaker.sol @@ -96,13 +96,6 @@ contract Helpers is DSMath { /** * @dev get MakerDAO CDP engine */ - function getPriceFeedAddress() public pure returns (address eth) { - eth = 0x729D19f657BD0614b4985Cf1D82531c67569197B; - } - - /** - * @dev get ETH price feed - */ function getSaiTubAddress() public pure returns (address sai) { sai = 0x448a5065aeBB8E423F0896E6c5D525C040f59af3; } @@ -138,9 +131,8 @@ contract Helpers is DSMath { /** * @dev get onchain ethereum price */ - function getRate() public returns (uint) { - (bytes32 ethrate, ) = PepInterface(getPriceFeedAddress()).peek(); - return uint(ethrate); + function getRate() public view returns (uint ethrate) { + ethrate = TubInterface(getSaiTubAddress()).per(); } /**