All incoming transactions such as gifts, mined coins and other income are calculated by default with the cost basis at the time of the transaction. If you would rather calculate with a cost basis of 0 USD (or any other FIAT), open the "Filter" and click on the corresponding trade type twice.