The withdrawPlatformFees function allows the owner to withdraw the total balance of platform fees, which could potentially allow them to drain all funds before validators and generators are compensated. This could undermine the fairness of the fee distribution among participants, leading to unintended fund distribution and potential trust issues in the platform.
The withdrawPlatformFees function enables the owner to transfer the entire feeToken balance from the contract to their address without any restriction. This could result in a scenario where the owner withdraws all funds, leaving no tokens available to pay validators and generators.
validators and generators not receiving their due fees
Manual code review
Modify the withdrawPlatformFees function to only allow the withdrawal of surplus funds after validators and generators have received their fees
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.