Closed RamRamez closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
giveth-dapps-v2 | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 13, 2024 2:27pm |
The recent updates refine the token price fetching functionalities in fetchMainnetTokenPrice
and fetchGnosisTokenPrice
functions by incorporating custom headers and focusing on retrieving prices in the native currency. Also, the dependency on @types/axios
was removed from package.json
, indicating a shift potentially towards a different type-safe approach for HTTP requests.
File | Change Summary |
---|---|
src/features/price/price.services.ts |
Added custom headers to API requests, revised response handling to use derivedNativeCurrency instead of derivedETH . |
package.json |
Removed @types/axios dependency. |
sequenceDiagram
participant Client
participant PriceService
participant API
Client->>PriceService: fetchMainnetTokenPrice()
PriceService->>API: Fetch token price with custom headers
API-->>PriceService: Token price in native currency
PriceService-->>Client: Return token price in native currency
Client->>PriceService: fetchGnosisTokenPrice()
PriceService->>API: Fetch token price with custom headers
API-->>PriceService: Token price in native currency
PriceService-->>Client: Return token price in native currency
In the code's embrace so tight,
Headers set, endpoints bright 🌟,
Native prices we now seek,
Gnosis tokens, sleek and chic.
Dependencies gently shed,
Our service moves ahead. 💻
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?
Summary by CodeRabbit
New Features
Improvements
derivedNativeCurrency
instead ofderivedETH
.Chores
@types/axios
dependency from the project.