Skip to content

@aave/math-utils Provide methods for parsing raw contract response data into humanized data to reduce bundle size #583

@MbBrainz

Description

@MbBrainz

The two packaged provided by Aave here are @aave/math-utils and @aave/contract-helpers, of which the latter has an unpacked bundle size of +8MB. This is huge and especially if developers want to integrate only specific contracts in their frontends.

It would be very nice to have @aave/math-utils contain functions to parse the raw contract responses on for example getReservesData on the UiPoolDataProvider to the final usable version that comes out of formatReservesAndIncentives.

Currently, this raw parsing is done from within the UiPoolDataProvider class and this logic is all private. Therefore, if you want to user the formatReservesAndIncentives function, you are forced to use the @aave/contract-helpers package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions