mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 17:28:08 +00:00
Refactor Maker Points logic by removing dislocation calculations and related UI elements. Update MakerPointsEngine to utilize new price fetching methods and streamline order synchronization. Adjust translations and tests accordingly to reflect these changes.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { buildBpsTargets, computeDislocationBps } from "./maker-points-logic";
|
||||
import { buildBpsTargets } from "./maker-points-logic";
|
||||
|
||||
describe("maker points target builder", () => {
|
||||
it("builds fixed bps targets per enabled band", () => {
|
||||
@@ -20,11 +20,3 @@ describe("maker points target builder", () => {
|
||||
expect(targets).toEqual([9, 99]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("maker points dislocation", () => {
|
||||
it("computes max bps dislocation from mark vs bid/ask", () => {
|
||||
const bps = computeDislocationBps(100, 99.97, 100.02);
|
||||
expect(bps).not.toBeNull();
|
||||
expect(Number(bps?.toFixed(2))).toBe(3.0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user