For example: in a portfolio where portfolio fee is set to 0.25%, when a 10M USDC loan with duration of 180 days is disbursed, (a) 10M would be transferred to the borrower from the portfolio, (b) a protocol fee of 24,657.53 USDC would be transferred to the protocol treasury (=10,000,000 USDC * (180/365) * 0.50%), and (c) a portfolio fee of 12,328.77 USDC would be transferred to the manager's wallet (=10,000,000 USDC * (180/365) * 0.25%).