The purrgeBadPawsition
function is responsible for the distribution of the rewards to the liquidators for liquidating a bad user and removing him from the system. The value calculated to be sent to the liquidator is in Euros, while the executeWhiskdrawal
function accepts the input amount in shares. This leads to incorrect amount being sent to the liquidator.
The value to be sent is calculated in Euros, which cannot be directly passed in the withdraw function which deals with shares.
Incorrect amount being sent to the liquidators for liquidating the positions. This affects the accounting of the protocol and breaks the system.
VSCode
Convert the value calculated in Euros in terms of the collateral tokens and then to the respective shares it corresponds to. Then pass those no. of shares as input in the executeWhiskdrawal
function.
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.