Hey, is there a way to check in the same tx that ,after swap, Token receiver address receive the tokens or not?

Nov 2, 2021, 4:18 PM
Theres a function that gets called during swaps swapexactETHforexactTokens i think
Or you could pull the balance before and after the swap
Nov 2, 2021, 5:23 PM
i build my contract for buy/sell.
i want to check that does recipient receive tokens or not after
IPancakePair(PancakeLibrary.pairFor(factory, input, output)).swap(
amount0Out, amount1Out, to, new bytes(0)
);
i did it before and after above function that did work. And it can not work because changes reflect after TX completion.
Nov 2, 2021, 5:26 PM

© 2024 Draquery.com All rights reserved.