The _freeFunds
function uses the getUnexchangedBalance
method to determine the withdrawable funds. However, the function incorrectly assumes the withdrawable amount corresponds to the synthetic token. The withdrawable funds represent the underlying asset, as determined by the getUnexchangedBalance
method.
This logic results in an inaccurate calculation, as the expected behaviour is to withdraw the correct amount of the underlying asset.
The current implementation may lead to incorrect accounting of the underlying asset, potentially causing imbalances between the synthetic and underlying tokens within the system.
Update the _freeFunds
logic to ensure clarity about the withdrawable funds being the underlying asset.
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.