Skip to content
Request an audit

‹ All findings

In MapleLoanInitializer, the Borrower can choose a different fundsAsset than the lender.

Low/InfoMaple Finance·Three Sigma · Institutional lending · 10th April, 20243S-MAPLE-L03

Description

The code allows for the Borrower to choose a different fundsAsset than the lender. At the moment this will make fund() revert and the borrower has to redeploy the loan with the right argument, however this results in a lot of wasted gas and could even become a bigger problem in a future upgrade.

Recommendation

Add a check in the MapleLoanInitializer to make sure the loan's asset matches that of the loan manager's.

Status

Addressed in the following PR: https://github.com/maple-labs/open-term-loan-private/pull/53