mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
[last try] Fixing WIPE error.
This commit is contained in:
parent
b4a6113f00
commit
6f6debbf30
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user