Crypto mining is tricky. You have two parts:
1. At the time the coins are mined, that creates a taxable event at the current price of the token. This establishes your cost basis.
2. When you sell the token, you have capital gains, which is the difference between the price during part 1 and...