mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Set dex markets limit to 500
This commit is contained in:
parent
4e99493ebb
commit
514882f086
|
@ -157,7 +157,7 @@ class BinanceMarket {
|
||||||
async function generateBinanceTokensList(): Promise<TokenItem[]> {
|
async function generateBinanceTokensList(): Promise<TokenItem[]> {
|
||||||
const decimals = CoinType.decimals(CoinType.binance)
|
const decimals = CoinType.decimals(CoinType.binance)
|
||||||
const BNBSymbol = CoinType.symbol(CoinType.binance)
|
const BNBSymbol = CoinType.symbol(CoinType.binance)
|
||||||
const markets: [BinanceMarket] = await axios.get(`${config.binanceDexURL}/v1/markets?limit=10000`).then(r => r.data);
|
const markets: [BinanceMarket] = await axios.get(`${config.binanceDexURL}/v1/markets?limit=500`).then(r => r.data);
|
||||||
const tokens = await axios.get(`${config.binanceDexURL}/v1/tokens?limit=10000`).then(r => r.data);
|
const tokens = await axios.get(`${config.binanceDexURL}/v1/tokens?limit=10000`).then(r => r.data);
|
||||||
const tokensMap = Object.assign({}, ...tokens.map(s => ({[s.symbol]: s})));
|
const tokensMap = Object.assign({}, ...tokens.map(s => ({[s.symbol]: s})));
|
||||||
const pairsMap = {}
|
const pairsMap = {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user