within solidity?
So if someone performs a swap on a DEX using swapExactEthForTokens, is it possible for me to identify this method name from within my contract?
First of all how will you monitor transaction from your contract
Im talking about a trade that interacts with my token. So my token receives the 'transfer' function call.
If you yourself know the call is coming to the transfer function, then why are you worried about swapExactEth function?
I want to add certain logic based on which call was made. Swaps will follow one path, adding or removing liquidity will follow another
obviously try to see if this info can be found in the call data, if not then it's impossible
I don't think this is possible, as uniswap would just call tranfer/transferFrom functions in your contract, passing the required params and nothing else
Обсуждают сегодня