saddle-finance / saddle-frontend

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

Protec ChildGauge contract call against certain chains. #1308

Closed arthur-zhuk closed 1 year ago

arthur-zhuk commented 1 year ago

Only execute this call when on Arbitrum or Optimism. Currently causing bug that prevents pages from rendering.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1308 (66615d1) into master (fbcb03b) will increase coverage by 0.00%. The diff coverage is 14.28%.

@@          Coverage Diff           @@
##           master   #1308   +/-   ##
======================================
  Coverage    9.39%   9.40%           
======================================
  Files         182     182           
  Lines        6725    6730    +5     
  Branches     2163    2164    +1     
======================================
+ Hits          632     633    +1     
- Misses       6093    6097    +4     
Impacted Files Coverage Δ
src/hooks/useRegistryAddress.ts 9.09% <0.00%> (ø)
src/utils/gauges.ts 1.08% <16.66%> (+0.52%) :arrow_up:

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