Skip to content

Commit

Permalink
bugfix: ENS oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
brucedonovan committed Nov 23, 2021
1 parent b722ca2 commit 168184d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/contexts/UserContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,20 @@ const UserProvider = ({ children }: any) => {
let Oracle;
switch (chainState.connection.fallbackChainId) {
case 1:
Oracle =
priceBase === '0x303400000000' ||
quote === '0x303400000000' ||
priceBase === '0x303700000000' ||
quote === '0x303700000000'
? contractMap.get('CompositeMultiOracle')
: contractMap.get('ChainlinkMultiOracle');
break;
case 42:
Oracle =
priceBase === '0x303400000000' || quote === '0x303400000000'
priceBase === '0x303400000000' ||
quote === '0x303400000000' ||
priceBase === '0x303700000000' ||
quote === '0x303700000000'
? contractMap.get('CompositeMultiOracle')
: contractMap.get('ChainlinkMultiOracle');
break;
Expand Down

0 comments on commit 168184d

Please sign in to comment.