Rewards for market suppose to be fixed and proportionaly distributed according to users deposits, meanwhile curent implementation leads to draining of rewards from contract.
MarketCreator.sol calculateReward()
Because reward not decreased after each withdrawal user's will drain whole contract's token balance (assumed we launcg few markets within the contract).
Another problem which causing such formula is that last user who receiving rewards will take whole amount of rewars. Because if it is only his funds at pool, reward at 100% will be granted to him
drain of protocol reward
decrease reward when some withdraw from market
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.