saddle-finance / saddle-frontend

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

Address Registry React Query Hook #1268

Closed nguyenaiden closed 2 years ago

nguyenaiden commented 2 years ago

Description: Resolve contract addresses with the MasterRegistry via a hook using ReactQuery Related PR: https://github.com/saddle-finance/saddle-frontend/pull/1267

codecov[bot] commented 2 years ago

Codecov Report

Merging #1268 (fe63e5f) into master (96034a8) will decrease coverage by 0.01%. The diff coverage is 11.11%.

@@            Coverage Diff             @@
##           master    #1268      +/-   ##
==========================================
- Coverage   10.24%   10.23%   -0.02%     
==========================================
  Files         162      164       +2     
  Lines        6120     6137      +17     
  Branches     1993     1995       +2     
==========================================
+ Hits          627      628       +1     
- Misses       5493     5509      +16     
Impacted Files Coverage Δ
src/errors/ContractNotLoadedError.ts 0.00% <0.00%> (ø)
src/providers/useRegistryAddress.ts 0.00% <0.00%> (ø)
src/hooks/useContract.ts 4.65% <100.00%> (+0.55%) :arrow_up:

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