There's currently no functionality for offer makers to withdraw platform fee earned when takers create stockInfo. This will discourage users from using the protocol.
When takers create stock via PreMarkets::createTaker, the original offer owner earns a platform fee calculated at Ln254-263:
This fee counts as an earning for the offer owner to motivate more points liquidity provision. However, there's currently no feature to withdraw this fee. For a POC, use this test available from the test suite:
This test shows that there's no way for offers owners to withdraw earned protocol fee.
Protocol fee earned by offer owners is permanently stuck in the protocol for the beneficiary to withdraw. This counts as a loss to offer owners.
Manual review
Provide a feature for offer owners to withdraw protocol fee earnings.
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.