goOnStageOrBattle()
function in RapBattle contract allows users to go into battle with each other using their tokens as bets
The function accepts 2 parameters and one of them is the amount of token to put into bet. But the function does not check if the user has enough tokens.
If the user has less tokens than his input parameter goOnStageOrBattle()
function credToken.transferFrom(msg.sender, address(this), _credBet);
will revert. It could be good to revert with an error at the begining of the function
Manual review
if (cred.balanceOf(msg.sender) < _credBet) revert NOT_ENOUGH_BALANCE;
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.