UNPKG

@alcorexchange/alcor-swap-sdk

Version:

## Installation ​​ **npm** ``` npm i @alcorexchange/alcor-swap-sdk ``` **yarn** ``` yarn add @alcorexchange/alcor-swap-sdk ``` ## Usage ### Import:

29 lines (26 loc) 648 B
import { TickMath } from "utils/tickMath"; import { Tick } from "entities/tick"; describe("Tick", () => { describe("constructor", () => { it("throws if tick is below min tick", () => { expect( () => new Tick({ index: TickMath.MIN_TICK - 1, liquidityGross: 0, liquidityNet: 0, }) ).toThrow("TICK"); }); it("throws if tick is above max tick", () => { expect( () => new Tick({ index: TickMath.MAX_TICK + 1, liquidityGross: 0, liquidityNet: 0, }) ).toThrow("TICK"); }); }); });