maxAmount and balance #357
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pauliax
Vulnerability details
Impact
I think this if check is incorrect, because in theory maxAmount parameter can be greater than totalMaltBalance:
Recommended Mitigation Steps
If my assumption is correct, the check should use balance, not maxAmount:
``solidity
balance != totalMaltBalance
However, I think the best approach would be to eliminate 'balance' altogether:
The text was updated successfully, but these errors were encountered: