I need help with understanding how this transaction was created. Link: https://bscscan.com/tx/0x02fa7264da976f01138b452b737350e4382e54fa60ee8b68b23b2efabb43c54a
How it is possible to make a transaction with ~17 identical groups transfers inside? I think he called a function in his custom solidity contract 17 times using some kind of loop but I want to have deeper understanding of how it works and googling gave me nothing.
Is it possible to swap token A(BUSD) for token B if I code a contract that performs actions displayed in Logs?
- Transfer() some BUSD to LP pair contract using BUSD contract transfer function.
- Approve() BUSD with Pancake RouterV2 contract as spender
- Calculate and transfer() amount of token B to dead address(burn?)
- Calculate and transfer() amount of token B to LP pair contract(liq. provider fee?)
- Transfer() remaining amount of token B to my wallet
- Sync(), (LP Pair contract function)
- Swap(), (LP Pair contract function)
If I code a smart contract that calls these functions inside of one main function will it work?