default transaction tax is 3.375
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user