Incorrect check in WinnablesTicketManager.withdrawTokens
Summary
The method implements an incorrect check on the amount being withdrawn, allowing only withdrawals of the contract's full token balance.
Vulnerability Detail
WinnablesTicketManager.sol#L295 implements a check with the incorrect inequality direction: by checking that amount < balance, the method disallows any call that attempts to withdraw less tokens than the contract's balance.
Lone Peanut Swallow
Low/Info
Incorrect check in
WinnablesTicketManager.withdrawTokens
Summary
The method implements an incorrect check on the amount being withdrawn, allowing only withdrawals of the contract's full token balance.
Vulnerability Detail
WinnablesTicketManager.sol#L295 implements a check with the incorrect inequality direction: by checking that
amount < balance
, the method disallows any call that attempts to withdraw less tokens than the contract's balance.Impact
Low. Incorrectly implemented token withdrawal method doesn't allow for partial withdrawals.
Code Snippet
Tool used
Manual Review
Recommendation