Closed sandoche closed 2 months ago
[!CAUTION]
Review failed
The pull request is closed.
The changes involve updates to the .env
configuration and modifications across several TypeScript files. The .env
file now includes a proxy URL for GitHub API requests. New constants for unknown token metadata have been added to improve the handling of token data in auction-related queries. Additionally, the formatUnits
function has been enhanced to better manage edge cases related to token decimals.
File | Change Summary |
---|---|
.env |
Updated GITHUB_API_PROXY to https://proxy.evmos.org/github/ . |
src/constants/index.ts |
Added new constant UNKNOWN_TOKEN_METADATA_DEFAULT for unknown token metadata. |
src/queries/fetchCurrentAuction.ts |
Utilized UNKNOWN_TOKEN_METADATA_DEFAULT for unknown tokens in fetchCurrentAuction . |
src/queries/fetchPastAuction.ts |
Utilized UNKNOWN_TOKEN_METADATA_DEFAULT for unknown tokens in fetchPastAuction . |
src/utilities/formatUnits.ts |
Enhanced handling of zero tokenDecimals and refined output formatting. |
package.json |
Added a comma for proper JSON formatting in the dependencies section. |
Objective | Addressed | Explanation |
---|---|---|
Add fallback value when tokenMetadata are not found (#8) | ✅ |
🐰 In the meadow, where the tokens play,
A proxy now guides them on their way.
Unknowns are wrapped in a cozy embrace,
With defaults to keep them in their place.
Hopping along, we cheer and we sing,
For clarity and order, these changes bring! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes #8
Summary by CodeRabbit
New Features
Bug Fixes
Chores
formatUnits
function to better handle edge cases and improve output consistency.package.json
file.