From 0fe804413b6d3fe26c703ae1aebb7e671041717f Mon Sep 17 00:00:00 2001 From: peepopoggers <72892531+peepopoggers@users.noreply.github.com> Date: Thu, 28 Jan 2021 23:39:47 +0000 Subject: [PATCH] Moved time function to shared --- src/inverse-client.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/inverse-client.ts b/src/inverse-client.ts index a39ad00..ef8506a 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -340,12 +340,4 @@ export class InverseClient extends SharedEndpoints { }): GenericAPIResponse { return this.requestWrapper.get('v2/private/account/lcp', params); } - - async getTimeOffset(): Promise { - const start = Date.now(); - return this.getServerTime().then(result => { - const end = Date.now(); - return Math.ceil((result.time_now * 1000) - end + ((end - start) / 2)); - }); - } };