INNER CODE UNIT · TypeScript

promises

0xinevitable/bento · adapters/bnb/index.ts:41

      const promises = safeAsyncFlatMap(items, async (token) => {
        if (token.type === 'nft') {
          return [];
        }
        if (
          token.contract_address === EEEE_ADDRESS // Klaytn
        ) {
          return [];
        }
        const balance =
          typeof token.balance === 'string'
            ? Number(token.balance) / 10 ** token.contract_decimals
            : 0;
        if (balance <= 0) {
          return [];
        }
        const symbol = token.contract_ticker_symbol;
        const tokenInfo = BNB_TOKENS.find(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…