UNPKG

@alcorexchange/alcor-swap-sdk

Version:

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

23 lines (22 loc) 773 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tickMath_1 = require("utils/tickMath"); const tick_1 = require("entities/tick"); describe("Tick", () => { describe("constructor", () => { it("throws if tick is below min tick", () => { expect(() => new tick_1.Tick({ index: tickMath_1.TickMath.MIN_TICK - 1, liquidityGross: 0, liquidityNet: 0, })).toThrow("TICK"); }); it("throws if tick is above max tick", () => { expect(() => new tick_1.Tick({ index: tickMath_1.TickMath.MAX_TICK + 1, liquidityGross: 0, liquidityNet: 0, })).toThrow("TICK"); }); }); });