Users that want to increase their value of Euros staked, will not get distributed fees even though they have TST already staked. This is due to a vulnerability that prevents users that have pending stakes in Euros alone even though they have TST already staked, which the protocol states is the requirement to get distributed the fees
When distributeFees
function is called in the liquidation pool, the manager transfers the required amount to the contract and it then distributes those fees to every positions for every holder, It then adds those fees to every euro position based on their position of the TST staked as shown below
As you can see above, after doing and sharing the fees for the positions, it goes to the pending stakes, but in the pending stakes, stakes that do not have TST staked, will not get fees distributed to it, and will receive zero euro added to it, even though the Protocol States that every holder will receive these fees as long they have TST staked. This Line of code assumes that
Every user will stake TST and EURO every time they want to increase their positions, which is not the case, as some holders may try to increase their Euro position, because of the euro cost of the upcoming liquidation
No Fees are Distributed To Users who Just Want to increase their EUROs position even though they have a Valid TST position
Manual Review
This Block of code Should Be Removed
This Should Be done So That Some users do not miss out on fees, which means that rewards are shared only to valid positions and not stakes that have not being consolidated, and everyone should receive those fees, as described by the protocol rules
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.