diff --git a/contracts/ProxyLogics/dex.sol b/contracts/Bin/DEX.sol similarity index 100% rename from contracts/ProxyLogics/dex.sol rename to contracts/Bin/DEX.sol diff --git a/contracts/ProxyLogics/kyber.sol b/contracts/Bin/Kyber.sol similarity index 95% rename from contracts/ProxyLogics/kyber.sol rename to contracts/Bin/Kyber.sol index a583710..0b4a32c 100644 --- a/contracts/ProxyLogics/kyber.sol +++ b/contracts/Bin/Kyber.sol @@ -1,7 +1,18 @@ -pragma solidity 0.5.0; +pragma solidity ^0.5.0; -import "./safemath.sol"; +library SafeMath { + + function mul(uint256 a, uint256 b) internal pure returns (uint256) { + if (a == 0) { + return 0; + } + uint256 c = a * b; + require(c / a == b, "Assertion Failed"); + return c; + } + +} interface IERC20 { function balanceOf(address who) external view returns (uint256); diff --git a/contracts/ProxyLogics/uniswap.sol b/contracts/Bin/Uniswap.sol similarity index 100% rename from contracts/ProxyLogics/uniswap.sol rename to contracts/Bin/Uniswap.sol diff --git a/contracts/ProxyLogics/uniswapPool.sol b/contracts/Bin/UniswapPool.sol similarity index 100% rename from contracts/ProxyLogics/uniswapPool.sol rename to contracts/Bin/UniswapPool.sol diff --git a/contracts/ProxyLogics/safemath.sol b/contracts/ProxyLogics/safemath.sol deleted file mode 100644 index e641f10..0000000 --- a/contracts/ProxyLogics/safemath.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity 0.5.0; - - -library SafeMath { - - function mul(uint256 a, uint256 b) internal pure returns (uint256) { - if (a == 0) { - return 0; - } - uint256 c = a * b; - require(c / a == b, "Assertion Failed"); - return c; - } - - function div(uint256 a, uint256 b) internal pure returns (uint256) { - require(b > 0, "Assertion Failed"); - uint256 c = a / b; - return c; - } - - function sub(uint256 a, uint256 b) internal pure returns (uint256) { - assert(b <= a); - return a - b; - } - - function add(uint256 a, uint256 b) internal pure returns (uint256) { - uint256 c = a + b; - assert(c >= a); - return c; - } - -}