I am attempting to chang the multi-call on pancake SDK to my new router
The swapExactEthForTokens has 3 new parameters, those being: _factory, initicodehash, lastVal, thousands. The swapExactTokensForEth also adds 3 new parameters, however it gets rid of the “to” parameter.
Im trying to change pancake SDK to do the following Call the functions of the router “getAmountsOut”, “getAmountsOutPancakeV1” and “getAmountsOutWaultswap” via a multicall. The lastVal and thousands should be 9975 and 10000 Once the multicall is done, select the best price and call the “swapExactEthForTokens” or “swapExactTokensForEth”
I cant get it to call properly - what exactly do i change within the SDK - the old pancakeswap router is this: 0x10ED43C718714eb63d5aA57B78B54704E256024E the new router to use is this: 0x45a0DCA705EDeDffd6cE60feB1C8007Ca280a410