Submitted by cccz
MapleLoanInternals._sendFee should check returnData.length == 32 before decoding, otherwise if it returns bytes data, the abi.decode will return 0x20, result in lost tokens.
MapleLoanInternals.sol#L332-L344
This contract can test that when the function returns bytes data, abi.encode will decode the return value as 0x20.
lucas-manuel (Maple Finance) confirmed, but disagreed with Medium severity and commented:
JGcarv (Maple Finance) resolved:
LSDan (judge) commented:
