aave-utilities
aave-utilities copied to clipboard
` @aave/math-utils` Provide methods for parsing raw contract response data into humanized data to reduce bundle size
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.