ExchangeKyberProxy.sol

Functions

kyberSwap()

This function swaps ETH/TOKEN, TOKEN/ETH or TOKEN/TOKEN using Kyber Network reserves.

function kyberSwap(uint256 givenAmount, address givenToken,
address receivedToken, bytes32 hash) public payable

kyberTrade()

This function exchanges ETH/TOKEN, TOKEN/ETH or TOKEN/TOKEN using the internal balance mapping that keeps track of users' balances. It requires the user to first invoke the deposit function.

function kyberTrade(uint256 givenAmount, address givenToken,
address receivedToken, bytes32 hash) public

getExpectedRateBatch()

function getExpectedRateBatch(address[] memory givenTokens,
address[] memory receivedTokens, uint256[] memory givenAmounts)
public view returns(uint256[] memory, uint256[] memory)

Last updated