Rename VIP→Tier, recalculate equity curve on fee tier change
Renamed all "VIP N" to "Tier N" in config, server, and HTML dropdowns. Added recalc_equity_curve() that rebuilds the equity curve with new fee rates. Previously the equity curve was passed through unchanged when switching tiers, so the chart visually stayed identical even though PnL numbers changed. Now each tier produces its own curve. Example OBI historical: Tier 0 equity ends at 141.5, Tier 6 at 149.7 — the chart visibly shifts up as fees drop from 4.5bp to 2.4bp taker.
This commit is contained in:
@@ -162,13 +162,13 @@ footer a{color:#3f3f4a;text-decoration:none}footer a:hover{color:var(--tx)}
|
||||
<input type="checkbox" id="fee-toggle" checked onchange="toggleFees()" style="cursor:pointer;margin-right:4px">Inc. fees
|
||||
</label>
|
||||
<select id="fee-tier-sel" style="display:none;font-size:10px;background:var(--srf);color:var(--hi);border:1px solid var(--ln);border-radius:4px;padding:3px 6px;font-family:var(--f)" onchange="onFeeTierChange()">
|
||||
<option value="0">VIP 0 (0.045/0.015%)</option>
|
||||
<option value="1">VIP 1 (0.040/0.012%)</option>
|
||||
<option value="2">VIP 2 (0.035/0.008%)</option>
|
||||
<option value="3">VIP 3 (0.030/0.004%)</option>
|
||||
<option value="4">VIP 4 (0.028/0.000%)</option>
|
||||
<option value="5">VIP 5 (0.026/0.000%)</option>
|
||||
<option value="6">VIP 6 (0.024/0.000%)</option>
|
||||
<option value="0">Tier 0 (0.045/0.015%)</option>
|
||||
<option value="1">Tier 1 (0.040/0.012%)</option>
|
||||
<option value="2">Tier 2 (0.035/0.008%)</option>
|
||||
<option value="3">Tier 3 (0.030/0.004%)</option>
|
||||
<option value="4">Tier 4 (0.028/0.000%)</option>
|
||||
<option value="5">Tier 5 (0.026/0.000%)</option>
|
||||
<option value="6">Tier 6 (0.024/0.000%)</option>
|
||||
</select>
|
||||
<select id="stake-tier-sel" style="display:none;font-size:10px;background:var(--srf);color:var(--hi);border:1px solid var(--ln);border-radius:4px;padding:3px 6px;font-family:var(--f)" onchange="onFeeTierChange()">
|
||||
<option value="none">No Stake</option>
|
||||
|
||||
Reference in New Issue
Block a user