Some platform fees are calculated and accured for the maker. But the platform fee is not added into the maker's balance.
When one user trades as one taker, the user has to pay some platform fee. The platform fee is splited into several parts: platform fee for referrer, platform fee for the taker, left platform fee for the maker.
The platform fee for the referrer and for the taker is timely updated and added into the referrer and taker's balance. And they can withdraw if they want. But the platform fee for the maker(left part) is recorded into the variable makerInfo.platformFee. However, this part of platform fee is never updated into the maker's balance. It means that the maker cannot withdraw this part of platform fee.
The maker will lose some expected platform fee.
Manual
Timely update maker's platform fee into the maker's balance or add one function to allow the maker update or withdraw the platform fee in variable makerInfo.platformFee.
Low severity, this can be done using the `Rescuable.sol` contract. Arguably there is no errors here given the `platformFee` variable can represent the historical fees that the protocol has accumulated and need not be updated when fees are withdrawn. However, I believe a more explicit function can be valuable to be more transparent regarding withdrawals. However, I will leave this issue open for escalation for debates because I can see it as arguably invalid as well, but I see no arguments for it being medium severity since there is an alternative to retrieve platform fees, assuming admins are trusted.
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.