Hi all, I have a pretty noob question here so thank you for your patience in advance... but how does UniSwap or pancakeSwap know which methods to execute from my smart contract? For example, when a user trades ETH for a specific token, is it the exchange that'll invoke the "transfer" method within the token's smart contract?

Sep 22, 2021, 4:33 AM
In which case, the next order of procedure is for the token to override the transfer method, and then emit a "Transfer" event upon completion?
Sep 22, 2021, 4:34 AM
yes
Sep 30, 2021, 4:37 AM

© 2024 Draquery.com All rights reserved.