Closed code423n4 closed 2 years ago
https://github.com/code-423n4/2022-03-Li.finance/blob/main/src/Facets/NXTPFacet.sol#L46
A user might accidently send ether if sendingAssetId is not ether.
sendingAssetId
add in line 54:
require(msg.value == 0);
Duplicate of https://github.com/code-423n4/2022-03-lifinance-findings/issues/53
Lines of code
https://github.com/code-423n4/2022-03-Li.finance/blob/main/src/Facets/NXTPFacet.sol#L46
Vulnerability details
A user might accidently send ether if
sendingAssetId
is not ether.Recommendation
add in line 54: