Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

bug(sdk): NUMERIC_FAULT-overflow with useReserves - aave-utilities outdated ? #48

@Neozaru

Description

@Neozaru

Hi.

First of all, thank you for maintaining this. It looks super promising for whoever is trying to interact with Aave programatically without having to deal with smart-contracts directly.

I seem to be getting this error everywhere I put useReserves. The error is wrapped into the { error } object returned by the hook and { data } is never populated. I haven't tried but would expect this error to be in other hooks too.

Error: overflow [ See: https://links.ethers.org/v5-errors-NUMERIC_FAULT-overflow ] (fault="overflow", operation="toNumber", value="30000000000000000000000000", code=NUMERIC_FAULT, version=bignumber/5.7.0) at Logger.makeError (index.js:231:23) at Logger.throwError (index.js:240:20) at throwFault (bignumber.js:307:19) at BigNumber.toNumber (bignumber.js:157:13) at eval (index.js:118:69) at Array.map (<anonymous>) at UiPoolDataProvider.getReservesHumanized (index.js:73:42) at async m (index.js:84:5366)

Since the last commit if from 6 months ago, is it possible that one or multiple contracts got changed ? Maybe simply an update of underlying libraries is required. I haven't zoomed in yet. Starting with this ticket instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions