TempleGold::_canDistribute
returns False in TempleGold::Mint
TempleGold::Mint
checks whether the calculated mintAmount can be distributed.
When the result is false, nothing is returned to the user showing what really happened and a caller can assume all went right.
The caller won't be able to mititgate the issue causing the return and its more likely that it would occur again denying the user the full functionality of the mint function.
The mint function should return something like a boolean to signify whether it has executed as intended.
TempleGoldStaking
and there getter function in ITempleGoldStaking
but no used.The variables
Are declared in TempleGoldStaking
but are not used at all since their data is already stored in the TempleGoldStaking::rewardData
struct.
Consider removing them as they will increase your contract deployment costs for no reason.
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.