Allow 5% buffer from hitting floorprice

This commit is contained in:
dapplion 2019-08-12 00:26:25 +02:00
parent d17e3379d5
commit 01adc3bace
1 changed files with 5 additions and 2 deletions

View File

@ -282,7 +282,7 @@ export default function App() {
* the floor price. The for loop is used to prevent a possible infinite
* loop if a `while` loop was used.
*/
for (let i = 0; i < 20 && price_next < floorprice_next; i++) {
for (let i = 0; i < 20 && price_next < floorprice_next * 1.05; i++) {
// enforce the effects of the unvested tokens not being burnable
let u_lower: number, u_upper: number;
// if (H > S) {
@ -297,7 +297,10 @@ export default function App() {
u_lower = u_min_t[t];
u_upper = u_max_t[t];
if (i > 15) u_lower = 1;
if (i > 15) {
u_lower = 1.02;
u_upper = u_upper + 1.04;
}
const priceGrowth = rv_U(u_lower, u_upper);