when you buy tokens from a swap (like pancakeswap or uniswap) are you transferring the tokens by using the transfer method in solidity?
I'm just alittle confused about whats happening, and YouTube isn't providing much clarity. just a simply yes or no would be more helpful than YouTube has been so far. thank you.
Hey @XskodeMedia ,
let's take Pancakeswap as example (will be the same for other DEX).
Everytime you make a buy, the transfer()
method will be called with these parameters:
sender --> pancake pair address
recipient --> your address
amount --> the amount you are buying
After this, sync()
will be called by the pair and this will sync the reserves and update the rate
1 Like