Hello everyone, does anyone know how to detect in the transfer method if a sale or purchase is being made? I need to apply different fees in buying and selling
Dec 23, 2021, 3:44 PM
Yes, try doing some buys and sells on a dex and look at each transaction logs. It should give you the right clues
Dec 23, 2021, 4:12 PM
okay thanks
https://forum.openzeppelin.com/t/how-to-tax-only-on-selling-tokens-using-safemoon-fork/9978
Dec 23, 2021, 4:29 PM
Memory pool just refers to collection of transactions that have been sent out by nodes but which haven’t been included in a block that has been mined or validated yet
In other words, it’s a look at the future
Yes, utxos aren’t nearly as intuitive to understand as an account based system lkke Ethereum
But much easier to prove validity of wallet balance I believe
Dec 23, 2021, 5:14 PM