I started to look at the code and tried to see why this happened.
It seems the problem is when they tried to disable a bond by setting maxDebt to 0. 2/n
The problems appears when a user deposits an amount that makes the totalDebt 0. Because the totalDebt does not take into consideration the new debt added by the user, the following line sets the minimum price of the value that was deposited by the user. 3/n
Because debtRatio() will be 0 due to totalDebt being 0, this propagates to the bondPrice that will be set as minimumPrice setup by governance power.
• • •
Missing some Tweet in this thread? You can try to
force a refresh