Added comments for 1inch connector

This commit is contained in:
Thrilok Kumar 2021-03-23 16:02:30 +05:30
parent f00cc3e4d9
commit 35c3e259ac

View File

@ -85,13 +85,14 @@ abstract contract OneInchResolverHelpers is OneInchResolver {
abstract contract OneInch is OneInchResolverHelpers { abstract contract OneInch is OneInchResolverHelpers {
/** /**
* @dev Sell ETH/ERC20_Token using 1inch. * @dev Sell ETH/ERC20_Token using 1Inch.
* @param buyAddr buying token address.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) * @notice Swap tokens from exchanges like kyber, 0x etc, with calculation done off-chain.
* @param sellAddr selling token amount.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) * @param buyAddr The address of the token to buy.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
* @param sellAmt selling token amount. * @param sellAddr The address of the token to sell.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
* @param unitAmt unit amount of buyAmt/sellAmt with slippage. * @param sellAmt The amount of the token to sell.
* @param unitAmt The amount of buyAmt/sellAmt with slippage.
* @param callData Data from 1inch API. * @param callData Data from 1inch API.
* @param setId Set token amount at this ID in `InstaMemory` Contract. * @param setId ID stores the amount of token brought.
*/ */
function sell( function sell(
address buyAddr, address buyAddr,
@ -118,5 +119,5 @@ abstract contract OneInch is OneInchResolverHelpers {
} }
contract ConnectV2OneInch is OneInch { contract ConnectV2OneInch is OneInch {
string public name = "1inch-v1"; string public name = "1Inch-v1";
} }