I’m working on a deal where part of the total purchase price is tied to future revenue. What should I consider in using an earnout vs. a forgivable note or something else?

There won’t be any SBA debt and I can manage cash flow in either scenario. So I’m curious about tax, accounting or legal issues that I should be thinking about.