The function StabilityPool::getExchangeRate()
is used or called by others, but it's not fully implimented.
The logic in the function is commented out and it returns a hard-coded 1e18. It might have simply be forgoten, but looking at callers, its an important function.
Function code itself below. Notice it being commented out and hard coded return of 1e18.
All logic that depends on a dynamic exchange rate is bypassed by the hard coded current exchange rate.
Manual review
From the code itself, it is clear 1e18 return always isn't intended. So either put in the correct business logic or remove the commented out code.
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.