We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba35dfe commit d08e16aCopy full SHA for d08e16a
1 file changed
src/ratesEngine.ts
@@ -189,6 +189,13 @@ async function updateTxValuesV3(transaction: DbTx): Promise<void> {
189
},
190
body: JSON.stringify(ratesRequest)
191
})
192
+ if (!ratesResponse.ok) {
193
+ if (ratesResponse.status === 429) {
194
+ datelog('Rate limit hit')
195
+ }
196
+ const text = await ratesResponse.text()
197
+ throw new Error(`Rates v3 error: ${text}`)
198
199
const ratesResponseJson = await ratesResponse.json()
200
const rates = asRatesV3Params(ratesResponseJson)
201
const depositRateObf = depositIsFiat
0 commit comments