DeFi profit calculation