UNPKG

@firefly-exchange/library-sui

Version:

Sui library housing helper methods, classes to interact with Bluefin protocol(s) deployed on Sui

43 lines (42 loc) 1.54 kB
"use strict"; /** * This file incorporates code from cetus-clmm-sui-sdk by CetusProtocol, * licensed under the Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) * which can be found at https://github.com/CetusProtocol/cetus-clmm-sui-sdk/blob/main/LICENSE */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FEE_RATE_DENOMINATOR = exports.MIN_SQRT_PRICE = exports.TICK_ARRAY_SIZE = exports.MAX_SQRT_PRICE = exports.MIN_TICK_INDEX = exports.MAX_TICK_INDEX = void 0; const bn_js_1 = __importDefault(require("bn.js")); /** * Represents the maximum tick index supported by the clmmpool program. * @category Constants */ exports.MAX_TICK_INDEX = 443636; /** * Represents the minimum tick index supported by the clmmpool program. * @category Constants */ exports.MIN_TICK_INDEX = -443636; /** * Represents the maximum sqrt price supported by the clmmpool. * @category Constants */ exports.MAX_SQRT_PRICE = "79226673515401279992447579055"; /** * Defines the number of initialized ticks that a tick-array account can store. * @category Constants */ exports.TICK_ARRAY_SIZE = 64; /** * Represents the minimum sqrt price supported by the clmmpool program. * @category Constants */ exports.MIN_SQRT_PRICE = "4295048016"; /** * The denominator used to divide the fee rate. * @category Constants */ exports.FEE_RATE_DENOMINATOR = new bn_js_1.default(1000000);