I'm new to Solana, I just wanted to figure out if the Token22 transfer fee extension can segregate buy tax and sell tax because in Ethereum I guess we could alter the ERC-20 contract by taking the LP address and implementing the logic on that but in Token22 I have I couldn't see any way to introduce sell fees on a token.
I'm aware of the transfer hook program which allows us to implement custom logic around token transfers but that too makes a CPI call to the transfer hook program after all the transfer logic of the token has happened so how could we induce sell tax in it?
I was thinking of a logic for creating transfer fees, and then returning the taxed amount in the same transaction to the user in case of buy methods. I could be wrong with the approach. I came up with the approach as the transfer fee extension is set at the protocol level of the mint account and we cannot alter it.