Skip to content

Commit

Permalink
chore: use usdc/usd price feed for usv (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
windhustler committed Jul 10, 2023
1 parent 1af8507 commit 45273bc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion subgraphs/core/config/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let defaultPath = './avalanche/';
let defaultPath = './mainnet/';
if (process.env.CONFIG_PATH != null) {
defaultPath = process.env.CONFIG_PATH;
}
Expand Down
24 changes: 19 additions & 5 deletions subgraphs/core/consts.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
import {TypedMap} from "@graphprotocol/graph-ts/index";

export const BNA_ADDRESS = '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7';
export const BNA_ADDRESS = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2';

export const BASE_ADDRESS = '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E';

export const SV_VIEW = '0x0000000000000000000000000000000000000000';
export const SV_VIEW_V2 = '0x0000000000000000000000000000000000000000';

export const SV_VIEW_BLOCK_NUM = '25358173';
export const SV_VIEW_V2_BLOCK_NUM = '25358173';
export const SV_VIEW = '0xE574beBdDB460e3E0588F1001D24441102339429';
export const SV_VIEW_V2 = '0x37d57E43EDD5AE0F52248693B7AbD3F9ceC01239';

export const BASE_ASSETS = ["0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e","0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"];
export const SV_VIEW_BLOCK_NUM = '15515672';
export const SV_VIEW_V2_BLOCK_NUM = '16289792';

export const BASE_ASSETS = ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","0x6b175474e89094c44da98b954eedeac495271d0f","0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","0x1f9840a85d5af5bf1d1762f925bdaddc4201f984","0x6b3595068778dd592e39a122f4f5a5cf09c90fe2"];

export let ChainLinkAssetMap = new TypedMap<string, string>();

ChainLinkAssetMap.set('0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', '0x0A77230d17318075983913bC2145DB16C7366156');
ChainLinkAssetMap.set('0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', '0x8fffffd4afb6115b954bd326cbe7b4ba576818f6');
ChainLinkAssetMap.set('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', '0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419');
ChainLinkAssetMap.set('0x6b175474e89094c44da98b954eedeac495271d0f', '0xaed0c38402a5d19df6e4c03f4e2dced6e29c1ee9');
ChainLinkAssetMap.set('0x64aa3364f17a4d01c6f1751fd97c2bd3d7e7f1d5', '0x7009033C0d6702fd2dfAD3478d2AE4e3b6aCB966');
ChainLinkAssetMap.set('0xd291e7a03283640fdc51b121ac401383a46cc623', '0x1Ee7399b07E626A42D8D87Dc4A2a0C2D952C1BBB');
ChainLinkAssetMap.set('0x1f9840a85d5af5bf1d1762f925bdaddc4201f984', '0x553303d460ee0afb37edff9be42922d8ff63220e');
ChainLinkAssetMap.set('0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9', '0x547a514d5e3769680ce22b2361c10ea13619e8a9');
ChainLinkAssetMap.set('0x5a98fcbea516cf06857215779fd812ca3bef1b32', '0x4e844125952d32acdf339be976c98e22f6f318db');
ChainLinkAssetMap.set('0xc00e94cb662c3520282e6f5717214004a7f26888', '0xdbd020caef83efd542f4de03e3cf0c28a4428bd5');
ChainLinkAssetMap.set('0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e', '0xa027702dbb89fbd58938e4324ac03b58d812b0e1');
ChainLinkAssetMap.set('0x6b3595068778dd592e39a122f4f5a5cf09c90fe2', '0xcc70f09a6cc17553b2e31954cd36e4a2d89501f7');
ChainLinkAssetMap.set('0xdbdb4d16eda451d0503b854cf79d55697f90c8df', '0xc355e4c0b3ff4ed0b49eaacd55fe29b311f42976');

0 comments on commit 45273bc

Please sign in to comment.