@paraswap/dex-lib 2.50.7-sdai → 2.50.7-sdai.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.
@@ -4,7 +4,7 @@ exports.Adapters = exports.SDaiConfig = void 0;
4
4
  const constants_1 = require("../../constants");
5
5
  const core_1 = require("@paraswap/core");
6
6
  exports.SDaiConfig = {
7
- SDai: {
7
+ sdai: {
8
8
  [constants_1.Network.MAINNET]: {
9
9
  sdaiAddress: '0x83F20F44975D03b1b09e64809B757c47f942BEeA',
10
10
  daiAddress: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
@@ -15,7 +15,7 @@ const utils_1 = require("../utils");
15
15
  const abi_1 = require("@ethersproject/abi");
16
16
  const pot_json_1 = __importDefault(require("../../../abi/maker-psm/pot.json"));
17
17
  const network = constants_1.Network.MAINNET;
18
- const dexKey = 'SDai';
18
+ const dexKey = 'sdai';
19
19
  const { potAddress } = config_1.SDaiConfig[dexKey][network];
20
20
  const blockHeaders = {};
21
21
  const dexHelper = new dex_helper_1.DummyDexHelper(network);
@@ -58,7 +58,7 @@ async function isPoolStateEqualToReal(state, blockNumber) {
58
58
  }
59
59
  async function checkPoolStateForBlockRange(startBlockNumber, endBlockNumber) {
60
60
  const network = constants_1.Network.MAINNET;
61
- const dexKey = 'SDai';
61
+ const dexKey = 'sdai';
62
62
  const dexHelper = new dex_helper_1.DummyDexHelper(network);
63
63
  const sdai = new sdai_1.SDai(network, dexKey, dexHelper);
64
64
  const pool = await sdai.eventPool;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraswap/dex-lib",
3
- "version": "2.50.7-sdai",
3
+ "version": "2.50.7-sdai.1",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "repository": "https://github.com/paraswap/paraswap-dex-lib",
@@ -4,7 +4,7 @@ import { Network } from '../../constants';
4
4
  import { SwapSide } from '@paraswap/core';
5
5
 
6
6
  export const SDaiConfig: DexConfigMap<SDaiParams> = {
7
- SDai: {
7
+ sdai: {
8
8
  [Network.MAINNET]: {
9
9
  sdaiAddress: '0x83F20F44975D03b1b09e64809B757c47f942BEeA',
10
10
  daiAddress: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
@@ -14,7 +14,7 @@ import { Interface } from '@ethersproject/abi';
14
14
  import PotAbi from '../../../abi/maker-psm/pot.json';
15
15
 
16
16
  const network = Network.MAINNET;
17
- const dexKey = 'SDai';
17
+ const dexKey = 'sdai';
18
18
 
19
19
  const { potAddress } = SDaiConfig[dexKey][network];
20
20
  const blockHeaders: Record<number, BlockHeader> = {};
@@ -89,7 +89,7 @@ async function checkPoolStateForBlockRange(
89
89
  endBlockNumber: number,
90
90
  ): Promise<boolean> {
91
91
  const network = Network.MAINNET;
92
- const dexKey = 'SDai';
92
+ const dexKey = 'sdai';
93
93
  const dexHelper = new DummyDexHelper(network);
94
94
 
95
95
  const sdai = new SDai(network, dexKey, dexHelper);