Hi guys, I'm new in solidity and defi word. I have a stupid question. I'm trying to interact with a router in my solidity code, so I imported the router interface getted from the dex github repo. In the interface I can see this method:
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
this is the method that I want to use, but my question is, how can I get reserveIn and the reserve out? And what they are?

Feb 17, 2022, 1:21 PM
Look at the uniswap api
The documentation is actually decent
Feb 17, 2022, 3:27 PM

© 2024 Draquery.com All rights reserved.