Similar to staking, yield farming allows you to earn rewards in crypto token. With yield farming, you provide liquidity to the crypto exchange and in return you earn rewards. This is very similar to staking. This is safe method as well because your principal amount will remain same. Have you tried it?