@t2000/engine 0.28.8 → 0.28.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2534,7 +2534,8 @@ Always prefer the canvas for visualisation requests. After rendering, offer to e
2534
2534
  };
2535
2535
  }
2536
2536
  const positions = context.serverPositions;
2537
- const savingsRate = positions?.savingsRate ?? 4.5;
2537
+ const rawRate = positions?.savingsRate ?? 0;
2538
+ const savingsRate = rawRate > 0 && rawRate < 1 ? rawRate * 100 : rawRate > 0 ? rawRate : 4.5;
2538
2539
  const healthFactor = positions?.healthFactor ?? null;
2539
2540
  const totalSavings = positions?.savings ?? 0;
2540
2541
  const totalBorrows = positions?.borrows ?? 0;