Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kava-labs/kava-tools

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kava-labs/kava-tools - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

oracle/coingecko-coins-list.json

16

oracle/utils.js

@@ -40,2 +40,6 @@ const util = require('util');

return 'kava';
case 'hard:usd':
return 'hard-protocol';
case 'hard:usd:30':
return 'hard-protocol';
default:

@@ -115,2 +119,4 @@ throw `invalid market id ${marketID}`;

return calculateAveragePriceCoinGecko(data);
case 'hard:usd:30':
return calculateAveragePriceCoinGecko(data);
default:

@@ -152,2 +158,6 @@ const market = loadCoinGeckoMarket(marketID);

return 'KAVAUSDT';
case 'hard:usd':
return 'HARDUSDT';
case 'hard:usd:30':
return 'HARDUSDT';
case 'atom:usd':

@@ -178,2 +188,6 @@ return 'ATOMUSDT';

return util.format(BINANCE_V3_KLINES_REQUEST, 'KAVAUSDT');
case 'hard:usd':
return util.format(BINANCE_V3_TICKER_REQUEST, 'HARDUSDT');
case 'hard:usd:30':
return util.format(BINANCE_V3_KLINES_REQUEST, 'HARDUSDT');
case 'atom:usd':

@@ -200,2 +214,4 @@ return util.format(BINANCE_V3_TICKER_REQUEST, 'ATOMUSDT');

return calculateAveragePriceBinance(data);
case 'hard:usd:30':
return calculateAveragePriceBinance(data);
default:

@@ -202,0 +218,0 @@ return data.lastPrice;

2

package.json
{
"name": "@kava-labs/kava-tools",
"description": "Tools for interacting with the Kava blockchain",
"version": "0.2.1",
"version": "0.2.2",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc