Incorrect implementation of Lender can result in lost tokens
The _sendFee function in MapleLoanInternals decodes the return data from an external call as an address without checking its length. If the called function returns bytes data, abi.decode interprets the length prefix (0x20) as the address, causing tokens to be sent to the wrong destination and lost.
Maple Finance contest
Medium