mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-17 00:31:34 +03:00
fix getAmountAtCurrent return type
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -12,4 +12,3 @@ export * from './gasLimits.js';
|
||||
export * from './timings.js';
|
||||
|
||||
export const SERVICE_TOKEN = 'ORN';
|
||||
export const INITIAL_VEORN_ADJUSTMENT_FACTOR = 5;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user