The protocol increases the allowance of fee tokens to validators so they can later withdraw their fee. However when the oracle cordinator owner wishes to withdraw his fees he withdraws the whole balance.
The protocol lets users register oracles, which are two kinds - validator and generator. Once registered they can start validating requests. If the score of the validator is withing the range of the group it's fee token allowance is increased via
This lets the oracle withdraw his fee from the contract at anytime.
The problem is the withdrawPlatformFees function which lets the owner withdraw his fees.
When the owner withdraws he is given the whole balance of the contract. This will cause a scenario where if an oracle has NOT withdrawn his fees yet and the owner withdraws, the oracle will be left without his reward.
Loss of funds for validators
Manual Review
Since the protocol would not be working with any weird ERC20s, the fee could be directly send to the validator instead of increasing his allowance.
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.