I am trying to understand, how the contract interfacing works on a granular level.

We know that, to interface a contract into another, you need the sol file & the contract address. This works good when working on a project in silo.

Is there any literature on how to interface[inherit] other erc20 tokens into your contract. For eg: to perform a swap, or to transfer funds, etc.

Dec 20, 2020, 9:21 AM
I don't think you need sol file for that, just the abi would be enough
Don't know about the other one
Dec 20, 2020, 12:28 PM
plus the contract address i think?
Dec 20, 2020, 3:33 PM
Yep. The 'where' and 'how'
Dec 20, 2020, 4:06 PM

© 2024 Draquery.com All rights reserved.