It would be really good to know which function called your own contract. Maybe you could add ctx.function which would return the contract that called you or None if it wasn't a contract.
This would allow a pure sell tax for example. Currently that can't be done since all we can know is who called us - for example the Rocketswap contract - but not from which function.