@augurproject/utils
Advanced tools
Comparing version 2.1.1 to 2.1.6
@@ -24,3 +24,3 @@ "use strict"; | ||
const now = Number(new Date()); | ||
if (lastcall + rateLimitMS < now) { | ||
if (!cached || (lastcall + rateLimitMS < now)) { | ||
lastcall = now; | ||
@@ -27,0 +27,0 @@ cached = await axios_1.default.get('https://safe-relay.gnosis.io/api/v1/gas-station/') |
{ | ||
"name": "@augurproject/utils", | ||
"version": "2.1.1", | ||
"version": "2.1.6", | ||
"description": "Grab bag of formatting and ABI encoding/decoding functions", | ||
@@ -23,3 +23,3 @@ "author": "The Augur Developers <team@augur.net>", | ||
}, | ||
"gitHead": "87eed3408cc4651584b331acf069761602c475c0" | ||
"gitHead": "3387af107f47602405902bd5eb97a0532c8fdd58" | ||
} |
@@ -39,3 +39,3 @@ import axios from 'axios'; | ||
const now = Number(new Date()); | ||
if (lastcall + rateLimitMS < now) { | ||
if (!cached || (lastcall + rateLimitMS < now)) { | ||
lastcall = now; | ||
@@ -42,0 +42,0 @@ cached = await axios.get('https://safe-relay.gnosis.io/api/v1/gas-station/') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
430989