I'm getting conflicting answers from multiple sources on this to the point where I've concluded it's practically impossible to create a custom token on Solana that:
- Takes a fee from every transfer (e.g. 10%)
- Redistributes that fee proportionally to all other holders via updating a reflection equation (e.g. someone who holds 50% of the supply would receive 50% of each fee taken)
- Optionally transfers a portion of that fee to a third account (e.g. a liquidity pool to buyback tokens).
Although I'm not exactly sure why this is impossible for points #1 & #2. #3 appears to be possible as far as I'm aware. But for #1 & #2 is it because Transfer Hooks aren't able to modify the original amount sent, while Transfer Fees aren't able to do any complex logic? Or is it because it's simply not possible to override an account's token balance to be formulaic?