Proud Rusty Mantis
Medium
If the CF is in a critical state, the debasing factor should increase by another 10% to help being back the CF (quoting the docs):
Further, the synthetics are debased an additional 10% beyond this rate
However, the percentage is incorrectly applied and instead the debase increases by ~9.09%.
- The debase factor is increased with this line:
criticalDebaseFactor = (criticalDebaseFactor * BASE_1000) / criticalDebaseMult;
- This results in
$90 * 1000 / 1100 = 81,8181818182$ which is a 9.09091% decrease
Incorrect debase which causes the CF to remain lower than intended
+ criticalDebaseFactor = criticalDebaseFactor - (criticalDebaseFactor * 100 / 1000)
- criticalDebaseFactor = (criticalDebaseFactor * BASE_1000) / criticalDebaseMult;