saddle-finance / saddle-frontend

An open source UI for saddle.finance 🤠
https://saddle.exchange
54 stars 58 forks source link

Log when swap stats is out of date #1336

Closed hammeiam closed 1 year ago

hammeiam commented 1 year ago

The swap-stats endpoint returns json which includes the unix timestamp of when it was created. This PR compares the timestamp to the current time and fires a sentry message when the response is more than a day old

codecov[bot] commented 1 year ago

Codecov Report

Merging #1336 (ac755b6) into master (bb9cc8a) will decrease coverage by 0.01%. The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master   #1336      +/-   ##
=========================================
- Coverage    9.49%   9.48%   -0.01%     
=========================================
  Files         182     182              
  Lines        6742    6748       +6     
  Branches     2210    2212       +2     
=========================================
  Hits          640     640              
- Misses       6100    6106       +6     
  Partials        2       2              
Impacted Files Coverage Δ
src/hooks/useSwapStats.ts 0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more