I'm trying to fetch the Buy or Sell Tax of a BSC token, but I haven't found a way yet.
I query the DEX via router_contract.functions.getAmountsOut(web3.toWei(1, 'Ether'), [ buying_token_address, pair_token]).call()
(in this case pancakeswap), but this value I believe it doesn't include token tax.
Does anyone know how I can calculate the tax?