teh router. is a reference to another contract, so what ever amount of ETH that came in to the function is being passed to the 'router' contract. Without seeing more of the contract, hard to say, but its a samp function

May 5, 2022, 12:30 PM
swap function
May 5, 2022, 12:30 PM
hey, thanks , what i need to know is how the path works, i want output token to be weth
May 5, 2022, 12:47 PM
to which contract is that? Most swaps are done in pairs inout vs output and looked like you coded the output to be WETH and input BUSD.
is that via pancake?
May 5, 2022, 12:51 PM
Okay, I want ether to be input
Yeah
Or it will go from eth to busd to weth
May 5, 2022, 12:58 PM

© 2024 Draquery.com All rights reserved.