UNPKG

@hubbleprotocol/hubble-sdk

Version:
64 lines 3.39 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.EPOCH_TO_SCALE_TO_SUM_TOKENS = exports.DECIMAL_FACTOR = exports.SCALE_FACTOR = exports.STABLECOIN_DECIMALS = exports.HBB_DECIMALS = exports.DECIMALS_KUSHUSDCORCA = exports.DECIMALS_KSTSOLSOLORCA = exports.DECIMALS_KUSDCUSDTORCA = exports.DECIMALS_KUSDHUSDCORCA = exports.DECIMALS_CORCA = exports.DECIMALS_CSLND = exports.DECIMALS_CUSDC = exports.DECIMALS_CSTSOL = exports.DECIMALS_CMSOL = exports.DECIMALS_CFTT = exports.DECIMALS_CRAY = exports.DECIMALS_CSRM = exports.DECIMALS_CBTC = exports.DECIMALS_CETH = exports.DECIMALS_CSOL = exports.DECIMALS_USDT = exports.DECIMALS_SCNSOL = exports.DECIMALS_JSOL = exports.DECIMALS_USDC = exports.DECIMALS_LDO = exports.DECIMALS_WSTETH = exports.DECIMALS_SRM = exports.DECIMALS_RAY = exports.DECIMALS_FTT = exports.DECIMALS_BTC = exports.DECIMALS_ETH = exports.LAMPORTS_PER_SSOL = exports.LAMPORTS_PER_SCNSOL = exports.LAMPORTS_PER_STSOL = exports.LAMPORTS_PER_DAOSOL = exports.LAMPORTS_PER_MSOL = exports.LAMPORTS_PER_SOL = void 0; const decimal_js_1 = __importDefault(require("decimal.js")); // Number of lamports per SOL exports.LAMPORTS_PER_SOL = 1_000_000_000; // Number of lamports per mSOL exports.LAMPORTS_PER_MSOL = 1_000_000_000; // Number of lamports per DAOSOL exports.LAMPORTS_PER_DAOSOL = 1_000_000_000; // Number of lamports per STSOL exports.LAMPORTS_PER_STSOL = 1_000_000_000; // Number of lamports per SCNSOL exports.LAMPORTS_PER_SCNSOL = 1_000_000_000; // Number of lamports per SSOL exports.LAMPORTS_PER_SSOL = 1_000_000_000; // Number of decimals for ETH exports.DECIMALS_ETH = 1_000_000_00; // Number of decimals for BTC exports.DECIMALS_BTC = 1_000_000; // Number of decimals for FTT exports.DECIMALS_FTT = 1_000_000; // Number of decimals for RAY exports.DECIMALS_RAY = 1_000_000; // Number of decimals for SRM exports.DECIMALS_SRM = 1_000_000; // Number of decimals for WSTETH exports.DECIMALS_WSTETH = 1_000_000_00; // Number of decimals for LDO exports.DECIMALS_LDO = 1_000_000_00; // Number of decimals for USDC exports.DECIMALS_USDC = 1_000_000; exports.DECIMALS_JSOL = 1_000_000_000; exports.DECIMALS_SCNSOL = 1_000_000_000; exports.DECIMALS_USDT = 1_000_000; exports.DECIMALS_CSOL = 1_000_000_000; exports.DECIMALS_CETH = 1_000_000_00; exports.DECIMALS_CBTC = 1_000_000; exports.DECIMALS_CSRM = 1_000_000; exports.DECIMALS_CRAY = 1_000_000; exports.DECIMALS_CFTT = 1_000_000; exports.DECIMALS_CMSOL = 1_000_000_000; exports.DECIMALS_CSTSOL = 1_000_000_000; exports.DECIMALS_CUSDC = 1_000_000; exports.DECIMALS_CSLND = 1_000_000; exports.DECIMALS_CORCA = 1_000_000; exports.DECIMALS_KUSDHUSDCORCA = 1_000_000; exports.DECIMALS_KUSDCUSDTORCA = 1_000_000; exports.DECIMALS_KSTSOLSOLORCA = 1_000_000_000; exports.DECIMALS_KUSHUSDCORCA = 1_000_000_000; // Number of decimals for HBB exports.HBB_DECIMALS = 1_000_000; // Number of decimals for USDH (stablecoin) exports.STABLECOIN_DECIMALS = 1_000_000; // Stability provider scale factor exports.SCALE_FACTOR = 1_000_000_000; // Decimal factor used with debt exports.DECIMAL_FACTOR = new decimal_js_1.default('1000000000000000'); // Number of epoch to scale to sum tokens exports.EPOCH_TO_SCALE_TO_SUM_TOKENS = 24; //# sourceMappingURL=math.js.map