Smart contract Buy & sell tax

  Kiến thức lập trình

Trying to add Tax to my smart contract.
Was using a weird logic like checking if an address is a contract or not.
If the sender is a contract, then it’s a buy else then it’s a sell.
The buy Tax was working, but the sell Tax wasn’t going through.
Using uniswap, would love any help

I tried adding uniswap manually too

LEAVE A COMMENT