From 6f6debbf30194dabb1fa18ca25de23625a152cc7 Mon Sep 17 00:00:00 2001 From: Sowmayjain Date: Mon, 1 Apr 2019 18:17:35 +0530 Subject: [PATCH] [last try] Fixing WIPE error. --- contracts/{ProxyLogics => Bin}/FreeProxy.sol | 0 .../{ProxyLogics => Bin}/MakerContract.sol | 0 contracts/ProxyLogics/InstaMaker.sol | 18 +++--------------- 3 files changed, 3 insertions(+), 15 deletions(-) rename contracts/{ProxyLogics => Bin}/FreeProxy.sol (100%) rename contracts/{ProxyLogics => Bin}/MakerContract.sol (100%) diff --git a/contracts/ProxyLogics/FreeProxy.sol b/contracts/Bin/FreeProxy.sol similarity index 100% rename from contracts/ProxyLogics/FreeProxy.sol rename to contracts/Bin/FreeProxy.sol diff --git a/contracts/ProxyLogics/MakerContract.sol b/contracts/Bin/MakerContract.sol similarity index 100% rename from contracts/ProxyLogics/MakerContract.sol rename to contracts/Bin/MakerContract.sol diff --git a/contracts/ProxyLogics/InstaMaker.sol b/contracts/ProxyLogics/InstaMaker.sol index 133ed75..e6361ed 100644 --- a/contracts/ProxyLogics/InstaMaker.sol +++ b/contracts/ProxyLogics/InstaMaker.sol @@ -17,13 +17,12 @@ interface TubInterface { function skr() external view returns (TokenInterface); function sai() external view returns (TokenInterface); function ink(bytes32) external view returns (uint); - function tab(bytes32) external view returns (uint); - function rap(bytes32) external view returns (uint); + function tab(bytes32) external returns (uint); + function rap(bytes32) external returns (uint); function per() external view returns (uint); function pep() external view returns (PepInterface); } - interface TokenInterface { function allowance(address, address) external view returns (uint); function balanceOf(address) external view returns (uint); @@ -34,17 +33,10 @@ interface TokenInterface { function withdraw(uint) external; } - interface PepInterface { function peek() external returns (bytes32, bool); } - -interface WETHFace { - function deposit() external payable; - function withdraw(uint wad) external; -} - interface UniswapExchange { function getEthToTokenOutputPrice(uint256 tokensBought) external view returns (uint256 ethSold); function getTokenToEthOutputPrice(uint256 ethBought) external view returns (uint256 tokensSold); @@ -188,11 +180,7 @@ contract CDPResolver is Helpers { } } - function wipe( - uint cdpNum, - uint _wad - ) public - { + function wipe(uint cdpNum, uint _wad) public { require(_wad > 0, "no-wipe-no-dai"); TubInterface tub = TubInterface(getSaiTubAddress());