Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid type for argument in function call. Invalid implicit conversion from contract IERC20 to contract IERC20 requested #1097

Open
Samboy76 opened this issue Nov 16, 2022 · 0 comments

Comments

@Samboy76
Copy link

Samboy76 commented Nov 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant