From ffa4d8b9d64613dc8673372d855485cc5c34f4f4 Mon Sep 17 00:00:00 2001 From: TheJuze Date: Fri, 29 Sep 2023 17:16:55 +0300 Subject: [PATCH] fix getAmountAtCurrent return type --- package-lock.json | 4 ++-- package.json | 2 +- src/constants/index.ts | 1 - src/constants/timings.ts | 1 - src/services/Integrator/constants.ts | 2 ++ src/services/Integrator/index.ts | 5 +++-- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 74382d0..542573d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@orionprotocol/sdk", - "version": "0.19.89-rc12", + "version": "0.19.89-rc13", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@orionprotocol/sdk", - "version": "0.19.89-rc12", + "version": "0.19.89-rc13", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index ab14ecd..c84fa96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.19.89-rc12", + "version": "0.19.89-rc13", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/constants/index.ts b/src/constants/index.ts index 1651be1..efe47f0 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -12,4 +12,3 @@ export * from './gasLimits.js'; export * from './timings.js'; export const SERVICE_TOKEN = 'ORN'; -export const INITIAL_VEORN_ADJUSTMENT_FACTOR = 5; diff --git a/src/constants/timings.ts b/src/constants/timings.ts index e92fc85..a5ee04b 100644 --- a/src/constants/timings.ts +++ b/src/constants/timings.ts @@ -1,3 +1,2 @@ -export const LOCK_START_TIME = 1690848000;// Aug 01 2023 00:00:00 UTC export const DAY = 86400 export const YEAR = 365 * DAY diff --git a/src/services/Integrator/constants.ts b/src/services/Integrator/constants.ts index 00c0d3d..8ec49a1 100644 --- a/src/services/Integrator/constants.ts +++ b/src/services/Integrator/constants.ts @@ -1 +1,3 @@ export const AVAILABLE_POOL_FEE = ['0.01', '0.05', '0.3', '1'] as const; +export const INITIAL_VEORN_ADJUSTMENT_FACTOR = 5; +export const LOCK_START_TIME = 1690848000;// Aug 01 2023 00:00:00 UTC diff --git a/src/services/Integrator/index.ts b/src/services/Integrator/index.ts index 4b050ed..01e27e5 100644 --- a/src/services/Integrator/index.ts +++ b/src/services/Integrator/index.ts @@ -9,7 +9,8 @@ import { } from './schemas/index.js'; import { fetchWithValidation } from 'simple-typed-fetch'; import { BigNumber } from 'bignumber.js'; -import { DAY, INITIAL_VEORN_ADJUSTMENT_FACTOR, LOCK_START_TIME, YEAR } from '../../constants/index.js'; +import { DAY, YEAR } from '../../constants/index.js'; +import { INITIAL_VEORN_ADJUSTMENT_FACTOR, LOCK_START_TIME } from './constants.js'; type BasePayload = { chainId: number @@ -109,7 +110,7 @@ class IntegratorService { }) } - getAmountAtCurrent = async (amount: number) => { + getAmountAtCurrent = (amount: number) => { const timestamp = Date.now() / 1000; // sqrt