Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MbBrainz opened this issue Jun 27, 2024 · 0 comments

Comments

@MbBrainz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant