extract KyberNetworkProxy Interface to own file
This commit is contained in:
parent
e0a866977c
commit
3a3ad95bf2
|
@ -0,0 +1,11 @@
|
||||||
|
pragma solidity ^0.4.18;
|
||||||
|
|
||||||
|
// On mainnet extract the values from here: https://developer.kyber.network/docs/Environments-Mainnet/
|
||||||
|
// On ropsten extract the values from here: https://developer.kyber.network/docs/Environments-Ropsten/
|
||||||
|
|
||||||
|
contract KyberNetworkProxy {
|
||||||
|
function getExpectedRate(address src, address dest, uint srcQty) public pure returns(uint expectedRate, uint slippageRate);
|
||||||
|
function trade(address src, uint srcAmount, address dest, address destAddress, uint maxDestAmount, uint minConversionRate, address walletId) public payable returns(uint);
|
||||||
|
function swapTokenToToken(address src, uint srcAmount, address dest, uint minConversionRate) public pure;
|
||||||
|
function swapEtherToToken(address token, uint minConversionRate) public payable returns(uint);
|
||||||
|
}
|
|
@ -3,17 +3,7 @@ pragma solidity ^0.4.18;
|
||||||
import "./LiquidPledging.sol";
|
import "./LiquidPledging.sol";
|
||||||
import "./common/SafeToken.sol";
|
import "./common/SafeToken.sol";
|
||||||
import "./common/Ownable.sol";
|
import "./common/Ownable.sol";
|
||||||
|
import "./IKyberSwap.sol";
|
||||||
|
|
||||||
// On mainnet extract the values from here: https://developer.kyber.network/docs/Environments-Mainnet/
|
|
||||||
// On ropsten extract the values from here: https://developer.kyber.network/docs/Environments-Ropsten/
|
|
||||||
|
|
||||||
contract KyberNetworkProxy {
|
|
||||||
function getExpectedRate(address src, address dest, uint srcQty) public pure returns(uint expectedRate, uint slippageRate);
|
|
||||||
function trade(address src, uint srcAmount, address dest, address destAddress, uint maxDestAmount, uint minConversionRate, address walletId) public payable returns(uint);
|
|
||||||
function swapTokenToToken(address src, uint srcAmount, address dest, uint minConversionRate) public pure;
|
|
||||||
function swapEtherToToken(address token, uint minConversionRate) public payable returns(uint);
|
|
||||||
}
|
|
||||||
|
|
||||||
contract SwapProxy is Ownable, SafeToken {
|
contract SwapProxy is Ownable, SafeToken {
|
||||||
address public ETH;
|
address public ETH;
|
||||||
|
|
Loading…
Reference in New Issue