Incorrect interest calculation
The interest calculation in the stablecoin factory's InterestModel contract incorrectly divides the exponential decay portion of the integral by 1e18, causing interest to be drastically undercharged when the rate decays from above the minimum rate. An attacker could exploit this to pay far less interest than owed, as demonstrated by a scenario where correct interest is about 13,880 coins but the code charges only about 185 coins.
Monolith Stablecoin Factory
Medium