Unable to get bets when Defender wins Battle
When the defender wins the battle, the contract will use the transferFrom method to transfer the Token to the defender.
But before using the transferFrom method, the owner of the Token needs to approve.
If the owner does not approve, the transaction will be rolled back. Therefore, the defender cannot get bets after winning the battle.
The defender cannot get bets after winning the battle, and the other player can battle without risk.
manual audit
Ask another person to transfer Token into the contract before the battle.
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.