INNER CODE UNIT · TypeScript

balance

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

    const balance = Number(rawBalance) / 10 ** this.currency.decimals;
    return { ...this.currency, balance };
  };

  getTokenBalances = async (account: string) => {
    try {
      const items = await getTokenBalancesFromCovalent({
        chainId: this.chainId,
        account,
      });

      const promises = safeAsyncFlatMap(items, async (token) => {
        if (token.type === 'nft') {
          return [];
        }
        if (
          token.contract_address === EEEE_ADDRESS // Klaytn
        ) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…