You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When I perform the following import statement in my flashloan smart contract to use Kyber Network import { KyberNetworkProxy as IKyberNetworkProxy } from '../smart-contracts/contracts/sol6/KyberNetworkProxy.sol'; and declared IERC20 other; and attempt to compile my flashloan smart contract it complains about this code line and some others using this function (uint expectedRate, ) = kyber.getExpectedRate(other, IERC20(KYBER_ETH_ADDRESS), balanceOther);
it returns the above error message Invalid type for argument in function call. Invalid implicit conversion from contract IERC20 to contract IERC20 requested
It´s been bugging me for days now.
Any clues or suggestions would be most welcome.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
Hi,
When I perform the following import statement in my flashloan smart contract to use Kyber Network
import { KyberNetworkProxy as IKyberNetworkProxy } from '../smart-contracts/contracts/sol6/KyberNetworkProxy.sol';
and declaredIERC20 other;
and attempt to compile my flashloan smart contract it complains about this code line and some others using this function(uint expectedRate, ) = kyber.getExpectedRate(other, IERC20(KYBER_ETH_ADDRESS), balanceOther);
it returns the above error message Invalid type for argument in function call. Invalid implicit conversion from contract IERC20 to contract IERC20 requested
It´s been bugging me for days now.
Any clues or suggestions would be most welcome.
Thank you in advance.
The text was updated successfully, but these errors were encountered: