No return statement in function MembershipERC1155.sol::saveProfit
. As a result function may not return the calculated profit as intended, leading to no claim of user profit.
MembershipERC1155.sol::saveProfit::182-187
lines
User cannot claim profit in function `MembershipERC1155.sol::claimProfit` as line 146 in MembershipERC1155.sol will revert with "No profit available" error.
Manual code review
Add return statement and return profit calculated in this function.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.