fix getAmountAtCurrent return type

This commit is contained in:
TheJuze
2023-09-29 17:16:55 +03:00
parent bed0aac578
commit ffa4d8b9d6
6 changed files with 8 additions and 7 deletions

4
package-lock.json generated
View File

@@ -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": {

View File

@@ -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",

View File

@@ -12,4 +12,3 @@ export * from './gasLimits.js';
export * from './timings.js';
export const SERVICE_TOKEN = 'ORN';
export const INITIAL_VEORN_ADJUSTMENT_FACTOR = 5;

View File

@@ -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

View File

@@ -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

View File

@@ -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