@aurigami/sdk 1.22.0 → 1.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.22.0",
2
+ "version": "1.23.1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -61,7 +61,7 @@
61
61
  "typescript": "^4.5.4"
62
62
  },
63
63
  "dependencies": {
64
- "@aurigami/contracts": "3.20.0",
64
+ "@aurigami/contracts": "3.21.0",
65
65
  "axios": "^0.26.1",
66
66
  "bignumber.js": "^9.0.2",
67
67
  "cache-decorator": "^0.1.6",
@@ -72,6 +72,16 @@ export const networkAddresses = {
72
72
  address: MAINNET_ADDRESSES.auTokens.NEARX.toLowerCase(),
73
73
  underlying: '0xb39eeb9e168ef6c639f5e282fef1f6bc4dcae375'.toLowerCase(),
74
74
  },
75
+ {
76
+ name: 'auUSDCNative',
77
+ address: MAINNET_ADDRESSES.auTokens.USDC_NATIVE.toLowerCase(),
78
+ underlying: '0x368ebb46aca6b8d0787c96b2b20bd3cc3f2c45f7'.toLowerCase(),
79
+ },
80
+ {
81
+ name: 'auUSDTNative',
82
+ address: MAINNET_ADDRESSES.auTokens.USDT_NATIVE.toLowerCase(),
83
+ underlying: '0x80da25da4d783e57d2fcda0436873a193a4beccf'.toLowerCase(),
84
+ },
75
85
  ],
76
86
  misc: {
77
87
  COMPTROLLER: MAINNET_ADDRESSES.comptroller.toLowerCase(),
@@ -108,6 +118,8 @@ export const networkAddresses = {
108
118
  AURORA_WNEAR: '0x1e0e812fbcd3eb75d8562ad6f310ed94d258d008'.toLowerCase(),
109
119
  NEARX: '0xb39eeb9e168ef6c639f5e282fef1f6bc4dcae375'.toLowerCase(),
110
120
  STADER: '0x078e103d5f9629ac48b8563fa2bfcd2f6d5fde84'.toLowerCase(),
121
+ USDC_NATIVE: '0x368ebb46aca6b8d0787c96b2b20bd3cc3f2c45f7'.toLowerCase(),
122
+ USDT_NATIVE: '0x80da25da4d783e57d2fcda0436873a193a4beccf'.toLowerCase(),
111
123
  },
112
124
  } as const;
113
125
 
@@ -26,4 +26,6 @@ export const decimalRecords: Record<string, number> = {
26
26
  '0x1e0e812fbcd3eb75d8562ad6f310ed94d258d008': 18, // AURORA_WNEAR
27
27
  '0xb39eeb9e168ef6c639f5e282fef1f6bc4dcae375': 24, // NEARX
28
28
  '0x078e103d5f9629ac48b8563fa2bfcd2f6d5fde84': 18, // STADER
29
+ '0x80da25da4d783e57d2fcda0436873a193a4beccf': 6, // decimals for USDT_NATIVE
30
+ '0x368ebb46aca6b8d0787c96b2b20bd3cc3f2c45f7': 6, // decimals for USDC_NATIVE
29
31
  };
@@ -280,7 +280,6 @@ export async function fetchUnderlyingTokensPrices(provider: providers.Provider):
280
280
  function shouldFetchFromKyberSwap(address: string) {
281
281
  address = address.toLowerCase();
282
282
  return (
283
- address == networkAddresses.tokens.AURORA ||
284
283
  address == networkAddresses.tokens.TRI ||
285
284
  address == networkAddresses.tokens.META ||
286
285
  address == networkAddresses.tokens.STADER