Skip to content

Commit

Permalink
Exclude blacklist assets from bep2 update sscript
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola committed Nov 14, 2019
1 parent 7b00d6c commit a8a7ab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/updateBEP2.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ const bluebird = require("bluebird")
const fs = require("fs")
const path = require("path")
const chalk = require('chalk')
const blacklist = require('../blockchains/binance/blacklist.json')

;(async () => {
const { assetInfoList } = await axios.get(`https://explorer.binance.org/api/v1/assets?page=1&rows=1000`).then(r => r.data)

await bluebird.each(assetInfoList, async ({ asset, assetImg }) => {
if (assetImg) {
if (assetImg && blacklist.indexOf(asset) == -1) {
const binanceDir = path.join(__dirname, `../blockchains/binance`)
const imagePath = `${binanceDir}/assets/${asset}/logo.png`

Expand Down

0 comments on commit a8a7ab5

Please sign in to comment.