Skip to content

Commit

Permalink
Update 1717936901_configurate_and_end.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Jun 19, 2024
1 parent 7dac5e9 commit 700e0c1
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,14 @@ export default migration('1717936901_configurate_and_end', {
// optimism chain id is 10
// and arbitrum-weth comet (0x6f7D514bbD4aFf3BcD1140B7344b32f063dEe486)
// arbitrum chain id is 42161

if (officialMarketsJSON[10]) {
// if there is no usdt comet on optimism chain, add it
if (!officialMarketsJSON[10].find(market => market.baseSymbol === 'USDT')){
officialMarketsJSON[10].push({ baseSymbol: 'USDT', cometAddress: '0x995E394b8B2437aC8Ce61Ee0bC610D617962B214' });
}
else {
officialMarketsJSON[10] = [{ baseSymbol: 'USDT', cometAddress: '0x995E394b8B2437aC8Ce61Ee0bC610D617962B214' }];
}

if (officialMarketsJSON[42161]) {
if (!officialMarketsJSON[42161].find(market => market.baseSymbol === 'WETH')) {
officialMarketsJSON[42161].push({ baseSymbol: 'WETH', cometAddress: '0x6f7D514bbD4aFf3BcD1140B7344b32f063dEe486' });
}
else {
officialMarketsJSON[42161] = [{ baseSymbol: 'WETH', cometAddress: '0x6f7D514bbD4aFf3BcD1140B7344b32f063dEe486' }];
}

if (officialMarketsJSON[ArbitrumChainId]) {
officialMarketsJSON[ArbitrumChainId].push(newMarketObject);
Expand Down

0 comments on commit 700e0c1

Please sign in to comment.