```\nfunction sendInterests(Loan storage loan, Provision storage provision) internal returns (uint256 sent) {\n    uint256 interests = loan.payment.paid - loan.lent;\n    if (interests == loan.payment.minInterestsToRepay) {\n        // this is the case if the loan is repaid shortly after issuance\n        // each lender gets its minimal interest, as an anti ddos measure to spam offer\n        sent = provision.amount + (interests / loan.nbOfPositions);\n    } else {\n        /* provision.amount / lent = share of the interests belonging to the lender. The parenthesis make the\n        calculus in the order that maximizes precison */\n        sent = provision.amount + (interests * (provision.amount)) / loan.lent; <- audit-issue minimal interest isn't guaranteed\n    }\n    loan.assetLent.checkedTransfer(msg.sender, sent);\n}\n```\n