default transaction tax is 3.375

This commit is contained in:
Sirttas
2026-06-21 14:34:08 +02:00
parent 9f6cc616ad
commit 35b2c9539a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const marketTaxStore = useMarketTaxStore();
</div>
<div class="end">
<span>SCC: </span>
<input type="number" min="3.6" max="8" step="0.01" v-model="marketTaxStore.scc" >
<input type="number" min="3.375" max="8" step="0.01" v-model="marketTaxStore.scc" >
</div>
</template>
+1 -1
View File
@@ -3,7 +3,7 @@ import { defineStore } from "pinia";
export const useMarketTaxStore = defineStore("marketTax", () => {
const brokerFee = useLocalStorage("market-brokerFee", 1.5);
const scc = useLocalStorage("market-scc", 3.6);
const scc = useLocalStorage("market-scc", 3.375);
const applyTaxes = (price: number, sellOrder?: boolean) => sellOrder ? price * (1 - (brokerFee.value + scc.value) / 100) : price * (1 + brokerFee.value / 100);
const calculateProfit = (buy: number, sell: number) => (applyTaxes(sell, true) / applyTaxes(buy)) - 1;