Skip to content

Commit

Permalink
Add facto-stable-ng implementation addy
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe-git committed Nov 11, 2023
1 parent e2b4b48 commit a616703
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions constants/configs/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const configs = {
['0x5F890841f657d90E081bAbdB532A05996Af79Fe6'.toLowerCase(), 'v1metausd'],
['0x2f956eee002b0debd468cf2e0490d1aec65e027f'.toLowerCase(), 'v1metabtc'],
['0x66442B0C5260B92cAa9c234ECf2408CBf6b19a6f'.toLowerCase(), 'tricrypto-1'],
['0x64AFA95e0C3D8410240a4262df9Fd82B12b64eDd'.toLowerCase(), 'metausdstableng'],
]),
factoryCryptoMetaBasePoolLpTokenAddressMap: new Map([
['0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC'.toLowerCase(), 'metacrypto'],
Expand Down
2 changes: 1 addition & 1 deletion pages/api/getPools/_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const getImplementation = ({
// rather, they simply use the meta pool's lp token as one of their tokens, and expose a
// zap to ease interactions with underlyings.
config.factoryCryptoMetaBasePoolLpTokenAddressMap?.get(poolInfo.coinsAddresses.find((address) => config.factoryCryptoMetaBasePoolLpTokenAddressMap?.has(address.toLowerCase()))?.toLowerCase()) || ''
) : (registryId === 'factory' || registryId === 'factory-tricrypto') ? (
) : (registryId === 'factory' || registryId === 'factory-tricrypto' || registryId === 'factory-stable-ng') ? (
(implementationAddressMap.get(poolInfo.implementationAddress.toLowerCase()) || '')
) : ''
);
Expand Down
1 change: 1 addition & 0 deletions pages/api/getPools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ const getPools = async ({ blockchainId, registryId, preventQueryingFactoData })
const isMetaPool = (
implementation === 'metausd' ||
implementation === 'metausdbalances' ||
implementation === 'metausdbalances' ||
implementation === 'metabtc' ||
implementation === 'metabtcbalances'
);
Expand Down

0 comments on commit a616703

Please sign in to comment.