@curvefi/api 2.65.28 → 2.65.29
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/eslint.config.mjs +88 -0
- package/lib/boosting.js +13 -13
- package/lib/constants/coins/avalanche.js +4 -4
- package/lib/constants/coins/base.js +1 -1
- package/lib/constants/coins/celo.js +1 -1
- package/lib/constants/coins/ethereum.js +88 -88
- package/lib/constants/coins/fantom.js +5 -5
- package/lib/constants/coins/kava.js +1 -1
- package/lib/constants/coins/polygon.js +18 -18
- package/lib/constants/coins/zksync.js +1 -1
- package/lib/constants/factory/crypto.js +32 -32
- package/lib/constants/factory/stable.js +57 -57
- package/lib/constants/network_constants.js +37 -37
- package/lib/constants/pools/arbitrum.js +8 -8
- package/lib/constants/pools/aurora.js +2 -2
- package/lib/constants/pools/avalanche.js +13 -13
- package/lib/constants/pools/ethereum.js +89 -89
- package/lib/constants/pools/fantom.js +13 -13
- package/lib/constants/pools/moonbeam.js +3 -3
- package/lib/constants/pools/optimism.js +3 -3
- package/lib/constants/pools/polygon.js +21 -21
- package/lib/constants/pools/xdai.js +13 -13
- package/lib/curve.d.ts +1 -1
- package/lib/curve.js +38 -38
- package/lib/dao.js +12 -12
- package/lib/external-api.d.ts +0 -9
- package/lib/external-api.js +75 -104
- package/lib/factory/deploy.js +12 -12
- package/lib/factory/factory-api.js +13 -13
- package/lib/factory/factory-crypto.js +10 -10
- package/lib/factory/factory-tricrypto.js +11 -11
- package/lib/factory/factory-twocrypto.js +9 -9
- package/lib/factory/factory.js +13 -13
- package/lib/index.d.ts +59 -59
- package/lib/index.js +3 -3
- package/lib/pools/PoolTemplate.js +59 -59
- package/lib/pools/mixins/depositMixins.js +14 -14
- package/lib/pools/mixins/depositWrappedMixins.js +8 -8
- package/lib/pools/mixins/swapMixins.js +12 -12
- package/lib/pools/mixins/swapWrappedMixins.js +8 -8
- package/lib/pools/mixins/withdrawImbalanceMixins.js +12 -12
- package/lib/pools/mixins/withdrawImbalanceWrappedMixins.js +6 -6
- package/lib/pools/mixins/withdrawMixins.js +14 -14
- package/lib/pools/mixins/withdrawOneCoinMixins.js +14 -14
- package/lib/pools/mixins/withdrawOneCoinWrappedMixins.js +6 -6
- package/lib/pools/mixins/withdrawWrappedMixins.js +6 -6
- package/lib/pools/subClasses/gaugePool.js +4 -4
- package/lib/pools/subClasses/statsPool.js +3 -3
- package/lib/pools/utils.js +11 -11
- package/lib/route-graph.worker.js +3 -3
- package/lib/router.js +4 -5
- package/lib/utils.js +22 -24
- package/package.json +21 -18
|
@@ -1,93 +1,93 @@
|
|
|
1
1
|
import { lowerCasePoolDataAddresses } from "../utils.js";
|
|
2
|
-
import gaugeABI from "../abis/gauge.json"
|
|
3
|
-
import gaugeSynthetixABI from "../abis/gauge_synthetix.json"
|
|
4
|
-
import gaugeV2ABI from "../abis/gauge_v2.json"
|
|
5
|
-
import gaugeV3ABI from "../abis/gauge_v3.json"
|
|
6
|
-
import gaugeV4ABI from "../abis/gauge_v4.json"
|
|
7
|
-
import gaugeV5ABI from "../abis/gauge_v5.json"
|
|
8
|
-
import gaugeFactoryABI from "../abis/gauge_factory.json"
|
|
9
|
-
import compoundDepositABI from '../abis/compound/deposit.json'
|
|
10
|
-
import compoundSwapABI from '../abis/compound/swap.json'
|
|
11
|
-
import usdtDepositABI from '../abis/usdt/deposit.json'
|
|
12
|
-
import usdtSwapABI from '../abis/usdt/swap.json'
|
|
13
|
-
import iearnDepositABI from '../abis/iearn/deposit.json'
|
|
14
|
-
import iearnSwapABI from '../abis/iearn/swap.json'
|
|
15
|
-
import busdDepositABI from '../abis/busd/deposit.json'
|
|
16
|
-
import busdSwapABI from '../abis/busd/swap.json'
|
|
17
|
-
import susdv2DepositABI from '../abis/susdv2/deposit.json'
|
|
18
|
-
import susdv2SwapABI from '../abis/susdv2/swap.json'
|
|
19
|
-
import susdv2SCurveRewards_abi from '../abis/susdv2/sCurveRewards.json'
|
|
20
|
-
import paxDepositABI from '../abis/pax/deposit.json'
|
|
21
|
-
import paxSwapABI from '../abis/pax/swap.json'
|
|
22
|
-
import renSwapABI from '../abis/ren/swap.json'
|
|
23
|
-
import sbtcSwapABI from '../abis/sbtc/swap.json'
|
|
24
|
-
import sbtcSCurveRewardsABI from '../abis/sbtc/sCurveRewards.json'
|
|
25
|
-
import hbtcSwapABI from '../abis/hbtc/swap.json'
|
|
26
|
-
import tripoolSwapABI from '../abis/3pool/swap.json'
|
|
27
|
-
import gusdSwapABI from '../abis/gusd/swap.json'
|
|
28
|
-
import gusdDepositABI from '../abis/gusd/deposit.json'
|
|
29
|
-
import husdSwapABI from '../abis/husd/swap.json'
|
|
30
|
-
import husdDepositABI from '../abis/husd/deposit.json'
|
|
31
|
-
import usdkSwapABI from '../abis/usdk/swap.json'
|
|
32
|
-
import usdkDepositABI from '../abis/usdk/deposit.json'
|
|
33
|
-
import usdnSwapABI from '../abis/usdn/swap.json'
|
|
34
|
-
import usdnDepositABI from '../abis/usdn/deposit.json'
|
|
35
|
-
import musdSwapABI from '../abis/musd/swap.json'
|
|
36
|
-
import musdDepositABI from '../abis/musd/deposit.json'
|
|
37
|
-
import musdSCurveRewards_abi from '../abis/musd/sCurveRewards.json'
|
|
38
|
-
import rsvSwapABI from '../abis/rsv/swap.json'
|
|
39
|
-
import rsvDepositABI from '../abis/rsv/deposit.json'
|
|
40
|
-
import rsvSCurveRewards_abi from '../abis/rsv/sCurveRewards.json'
|
|
41
|
-
import tbtcSwapABI from '../abis/tbtc/swap.json'
|
|
42
|
-
import tbtcDepositABI from '../abis/tbtc/deposit.json'
|
|
43
|
-
import tbtcSCurveRewards_abi from '../abis/tbtc/sCurveRewards.json'
|
|
44
|
-
import dusdSwapABI from '../abis/dusd/swap.json'
|
|
45
|
-
import dusdDepositABI from '../abis/dusd/deposit.json'
|
|
46
|
-
import dusdSCurveRewards_abi from '../abis/dusd/sCurveRewards.json'
|
|
47
|
-
import pbtcSwapABI from '../abis/pbtc/swap.json'
|
|
48
|
-
import pbtcDepositABI from '../abis/pbtc/deposit.json'
|
|
49
|
-
import pbtcSCurveRewards_abi from '../abis/pbtc/sCurveRewards.json'
|
|
50
|
-
import bbtcSwapABI from '../abis/bbtc/swap.json'
|
|
51
|
-
import bbtcDepositABI from '../abis/bbtc/deposit.json'
|
|
52
|
-
import obtcSwapABI from '../abis/obtc/swap.json'
|
|
53
|
-
import obtcDepositABI from '../abis/obtc/deposit.json'
|
|
54
|
-
import obtcSCurveRewards_abi from '../abis/obtc/sCurveRewards.json'
|
|
55
|
-
import sethSwapABI from '../abis/seth/swap.json'
|
|
56
|
-
import eursSwapABI from '../abis/eurs/swap.json'
|
|
57
|
-
import eursSCurveRewards_abi from '../abis/eurs/sCurveRewards.json'
|
|
58
|
-
import ustSwapABI from '../abis/ust/swap.json'
|
|
59
|
-
import ustDepositABI from '../abis/ust/deposit.json'
|
|
60
|
-
import aaveSwapABI from '../abis/aave/swap.json'
|
|
61
|
-
import aaveRewardsABI from '../abis/aave/rewards.json'
|
|
62
|
-
import stethSwapABI from '../abis/steth/swap.json'
|
|
63
|
-
import stethSCurveRewards_abi from '../abis/steth/sCurveRewards.json'
|
|
64
|
-
import saaveSwapABI from '../abis/saave/swap.json'
|
|
65
|
-
import ankrethSwapABI from '../abis/ankreth/swap.json'
|
|
66
|
-
import ankrethSCurveRewards_abi from '../abis/ankreth/sCurveRewards.json'
|
|
67
|
-
import usdpSwapABI from '../abis/usdp/swap.json'
|
|
68
|
-
import usdpDepositABI from '../abis/usdp/deposit.json'
|
|
69
|
-
import ibSwapABI from '../abis/ib/swap.json'
|
|
70
|
-
import linkSwapABI from '../abis/link/swap.json'
|
|
71
|
-
import rethSwapABI from '../abis/reth/swap.json'
|
|
72
|
-
import factorySwapABI from '../abis/factoryPools/swap.json'
|
|
73
|
-
import factoryDepositABI from '../abis/factoryPools/deposit.json'
|
|
74
|
-
import factoryRewardsABI from '../abis/factoryPools/rewards.json'
|
|
75
|
-
import tricrypto2SwapABI from '../abis/tricrypto2/swap.json'
|
|
76
|
-
import tricrypto2DepositABI from '../abis/tricrypto2/deposit.json'
|
|
77
|
-
import eurtSwapABI from '../abis/eurt/swap.json'
|
|
78
|
-
import eurtusdSwapABI from '../abis/eurtusd/swap.json'
|
|
79
|
-
import eurtusdDepositABI from '../abis/eurtusd/deposit.json'
|
|
80
|
-
import eursusdSwapABI from '../abis/eursusd/swap.json'
|
|
81
|
-
import crvethSwapABI from '../abis/crveth/swap.json'
|
|
82
|
-
import raiSwapABI from '../abis/rai/swap.json'
|
|
83
|
-
import raiDepositABI from '../abis/rai/deposit.json'
|
|
84
|
-
import twopoolSwapABI from '../abis/2pool/swap.json'
|
|
85
|
-
import fourpoolSwapABI from '../abis/4pool/swap.json'
|
|
86
|
-
import fraxusdcSwapABI from '../abis/fraxusdc/swap.json'
|
|
87
|
-
import frxethSwapABI from '../abis/frxeth/swap.json'
|
|
88
|
-
import sbtc2SwapABI from '../abis/sbtc2/swap.json'
|
|
89
|
-
import wbethSwapABI from '../abis/wbeth/swap.json'
|
|
90
|
-
import LlammaABI from '../abis/llamma.json'
|
|
2
|
+
import gaugeABI from "../abis/gauge.json" with { type: 'json' };
|
|
3
|
+
import gaugeSynthetixABI from "../abis/gauge_synthetix.json" with { type: 'json' };
|
|
4
|
+
import gaugeV2ABI from "../abis/gauge_v2.json" with { type: 'json' };
|
|
5
|
+
import gaugeV3ABI from "../abis/gauge_v3.json" with { type: 'json' };
|
|
6
|
+
import gaugeV4ABI from "../abis/gauge_v4.json" with { type: 'json' };
|
|
7
|
+
import gaugeV5ABI from "../abis/gauge_v5.json" with { type: 'json' };
|
|
8
|
+
import gaugeFactoryABI from "../abis/gauge_factory.json" with { type: 'json' };
|
|
9
|
+
import compoundDepositABI from '../abis/compound/deposit.json' with { type: 'json' };
|
|
10
|
+
import compoundSwapABI from '../abis/compound/swap.json' with { type: 'json' };
|
|
11
|
+
import usdtDepositABI from '../abis/usdt/deposit.json' with { type: 'json' };
|
|
12
|
+
import usdtSwapABI from '../abis/usdt/swap.json' with { type: 'json' };
|
|
13
|
+
import iearnDepositABI from '../abis/iearn/deposit.json' with { type: 'json' };
|
|
14
|
+
import iearnSwapABI from '../abis/iearn/swap.json' with { type: 'json' };
|
|
15
|
+
import busdDepositABI from '../abis/busd/deposit.json' with { type: 'json' };
|
|
16
|
+
import busdSwapABI from '../abis/busd/swap.json' with { type: 'json' };
|
|
17
|
+
import susdv2DepositABI from '../abis/susdv2/deposit.json' with { type: 'json' };
|
|
18
|
+
import susdv2SwapABI from '../abis/susdv2/swap.json' with { type: 'json' };
|
|
19
|
+
import susdv2SCurveRewards_abi from '../abis/susdv2/sCurveRewards.json' with { type: 'json' };
|
|
20
|
+
import paxDepositABI from '../abis/pax/deposit.json' with { type: 'json' };
|
|
21
|
+
import paxSwapABI from '../abis/pax/swap.json' with { type: 'json' };
|
|
22
|
+
import renSwapABI from '../abis/ren/swap.json' with { type: 'json' };
|
|
23
|
+
import sbtcSwapABI from '../abis/sbtc/swap.json' with { type: 'json' };
|
|
24
|
+
import sbtcSCurveRewardsABI from '../abis/sbtc/sCurveRewards.json' with { type: 'json' };
|
|
25
|
+
import hbtcSwapABI from '../abis/hbtc/swap.json' with { type: 'json' };
|
|
26
|
+
import tripoolSwapABI from '../abis/3pool/swap.json' with { type: 'json' };
|
|
27
|
+
import gusdSwapABI from '../abis/gusd/swap.json' with { type: 'json' };
|
|
28
|
+
import gusdDepositABI from '../abis/gusd/deposit.json' with { type: 'json' };
|
|
29
|
+
import husdSwapABI from '../abis/husd/swap.json' with { type: 'json' };
|
|
30
|
+
import husdDepositABI from '../abis/husd/deposit.json' with { type: 'json' };
|
|
31
|
+
import usdkSwapABI from '../abis/usdk/swap.json' with { type: 'json' };
|
|
32
|
+
import usdkDepositABI from '../abis/usdk/deposit.json' with { type: 'json' };
|
|
33
|
+
import usdnSwapABI from '../abis/usdn/swap.json' with { type: 'json' };
|
|
34
|
+
import usdnDepositABI from '../abis/usdn/deposit.json' with { type: 'json' };
|
|
35
|
+
import musdSwapABI from '../abis/musd/swap.json' with { type: 'json' };
|
|
36
|
+
import musdDepositABI from '../abis/musd/deposit.json' with { type: 'json' };
|
|
37
|
+
import musdSCurveRewards_abi from '../abis/musd/sCurveRewards.json' with { type: 'json' };
|
|
38
|
+
import rsvSwapABI from '../abis/rsv/swap.json' with { type: 'json' };
|
|
39
|
+
import rsvDepositABI from '../abis/rsv/deposit.json' with { type: 'json' };
|
|
40
|
+
import rsvSCurveRewards_abi from '../abis/rsv/sCurveRewards.json' with { type: 'json' };
|
|
41
|
+
import tbtcSwapABI from '../abis/tbtc/swap.json' with { type: 'json' };
|
|
42
|
+
import tbtcDepositABI from '../abis/tbtc/deposit.json' with { type: 'json' };
|
|
43
|
+
import tbtcSCurveRewards_abi from '../abis/tbtc/sCurveRewards.json' with { type: 'json' };
|
|
44
|
+
import dusdSwapABI from '../abis/dusd/swap.json' with { type: 'json' };
|
|
45
|
+
import dusdDepositABI from '../abis/dusd/deposit.json' with { type: 'json' };
|
|
46
|
+
import dusdSCurveRewards_abi from '../abis/dusd/sCurveRewards.json' with { type: 'json' };
|
|
47
|
+
import pbtcSwapABI from '../abis/pbtc/swap.json' with { type: 'json' };
|
|
48
|
+
import pbtcDepositABI from '../abis/pbtc/deposit.json' with { type: 'json' };
|
|
49
|
+
import pbtcSCurveRewards_abi from '../abis/pbtc/sCurveRewards.json' with { type: 'json' };
|
|
50
|
+
import bbtcSwapABI from '../abis/bbtc/swap.json' with { type: 'json' };
|
|
51
|
+
import bbtcDepositABI from '../abis/bbtc/deposit.json' with { type: 'json' };
|
|
52
|
+
import obtcSwapABI from '../abis/obtc/swap.json' with { type: 'json' };
|
|
53
|
+
import obtcDepositABI from '../abis/obtc/deposit.json' with { type: 'json' };
|
|
54
|
+
import obtcSCurveRewards_abi from '../abis/obtc/sCurveRewards.json' with { type: 'json' };
|
|
55
|
+
import sethSwapABI from '../abis/seth/swap.json' with { type: 'json' };
|
|
56
|
+
import eursSwapABI from '../abis/eurs/swap.json' with { type: 'json' };
|
|
57
|
+
import eursSCurveRewards_abi from '../abis/eurs/sCurveRewards.json' with { type: 'json' };
|
|
58
|
+
import ustSwapABI from '../abis/ust/swap.json' with { type: 'json' };
|
|
59
|
+
import ustDepositABI from '../abis/ust/deposit.json' with { type: 'json' };
|
|
60
|
+
import aaveSwapABI from '../abis/aave/swap.json' with { type: 'json' };
|
|
61
|
+
import aaveRewardsABI from '../abis/aave/rewards.json' with { type: 'json' };
|
|
62
|
+
import stethSwapABI from '../abis/steth/swap.json' with { type: 'json' };
|
|
63
|
+
import stethSCurveRewards_abi from '../abis/steth/sCurveRewards.json' with { type: 'json' };
|
|
64
|
+
import saaveSwapABI from '../abis/saave/swap.json' with { type: 'json' };
|
|
65
|
+
import ankrethSwapABI from '../abis/ankreth/swap.json' with { type: 'json' };
|
|
66
|
+
import ankrethSCurveRewards_abi from '../abis/ankreth/sCurveRewards.json' with { type: 'json' };
|
|
67
|
+
import usdpSwapABI from '../abis/usdp/swap.json' with { type: 'json' };
|
|
68
|
+
import usdpDepositABI from '../abis/usdp/deposit.json' with { type: 'json' };
|
|
69
|
+
import ibSwapABI from '../abis/ib/swap.json' with { type: 'json' };
|
|
70
|
+
import linkSwapABI from '../abis/link/swap.json' with { type: 'json' };
|
|
71
|
+
import rethSwapABI from '../abis/reth/swap.json' with { type: 'json' };
|
|
72
|
+
import factorySwapABI from '../abis/factoryPools/swap.json' with { type: 'json' };
|
|
73
|
+
import factoryDepositABI from '../abis/factoryPools/deposit.json' with { type: 'json' };
|
|
74
|
+
import factoryRewardsABI from '../abis/factoryPools/rewards.json' with { type: 'json' };
|
|
75
|
+
import tricrypto2SwapABI from '../abis/tricrypto2/swap.json' with { type: 'json' };
|
|
76
|
+
import tricrypto2DepositABI from '../abis/tricrypto2/deposit.json' with { type: 'json' };
|
|
77
|
+
import eurtSwapABI from '../abis/eurt/swap.json' with { type: 'json' };
|
|
78
|
+
import eurtusdSwapABI from '../abis/eurtusd/swap.json' with { type: 'json' };
|
|
79
|
+
import eurtusdDepositABI from '../abis/eurtusd/deposit.json' with { type: 'json' };
|
|
80
|
+
import eursusdSwapABI from '../abis/eursusd/swap.json' with { type: 'json' };
|
|
81
|
+
import crvethSwapABI from '../abis/crveth/swap.json' with { type: 'json' };
|
|
82
|
+
import raiSwapABI from '../abis/rai/swap.json' with { type: 'json' };
|
|
83
|
+
import raiDepositABI from '../abis/rai/deposit.json' with { type: 'json' };
|
|
84
|
+
import twopoolSwapABI from '../abis/2pool/swap.json' with { type: 'json' };
|
|
85
|
+
import fourpoolSwapABI from '../abis/4pool/swap.json' with { type: 'json' };
|
|
86
|
+
import fraxusdcSwapABI from '../abis/fraxusdc/swap.json' with { type: 'json' };
|
|
87
|
+
import frxethSwapABI from '../abis/frxeth/swap.json' with { type: 'json' };
|
|
88
|
+
import sbtc2SwapABI from '../abis/sbtc2/swap.json' with { type: 'json' };
|
|
89
|
+
import wbethSwapABI from '../abis/wbeth/swap.json' with { type: 'json' };
|
|
90
|
+
import LlammaABI from '../abis/llamma.json' with { type: 'json' };
|
|
91
91
|
export const POOLS_DATA_ETHEREUM = lowerCasePoolDataAddresses({
|
|
92
92
|
compound: {
|
|
93
93
|
name: "compound",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { lowerCasePoolDataAddresses } from "../utils.js";
|
|
2
|
-
import twopoolSwapABI from '../abis/2pool/swap.json'
|
|
3
|
-
import fusdtSwapABI from '../abis/fusdt/swap.json'
|
|
4
|
-
import fusdtZapABI from '../abis/fusdt/zap.json'
|
|
5
|
-
import renSwapABI from '../abis/ren-fantom/swap.json'
|
|
6
|
-
import triCryptoSwapNoZap from '../abis/tricrypto/swapNoZap.json'
|
|
7
|
-
import ibSwapABI from '../abis/ib/swap.json'
|
|
8
|
-
import aaveSwapABI from '../abis/aave/swap.json'
|
|
9
|
-
// import paaveRewardsabi from '../abis/paave/rewards.json'
|
|
10
|
-
import gaugeChildABI from '../abis/gauge_child.json'
|
|
11
|
-
import gaugeRewardsOnlyABI from '../abis/gauge_rewards_only.json'
|
|
12
|
-
import streamerABI from '../abis/streamer.json'
|
|
2
|
+
import twopoolSwapABI from '../abis/2pool/swap.json' with { type: 'json' };
|
|
3
|
+
import fusdtSwapABI from '../abis/fusdt/swap.json' with { type: 'json' };
|
|
4
|
+
import fusdtZapABI from '../abis/fusdt/zap.json' with { type: 'json' };
|
|
5
|
+
import renSwapABI from '../abis/ren-fantom/swap.json' with { type: 'json' };
|
|
6
|
+
import triCryptoSwapNoZap from '../abis/tricrypto/swapNoZap.json' with { type: 'json' };
|
|
7
|
+
import ibSwapABI from '../abis/ib/swap.json' with { type: 'json' };
|
|
8
|
+
import aaveSwapABI from '../abis/aave/swap.json' with { type: 'json' };
|
|
9
|
+
// import paaveRewardsabi from '../abis/paave/rewards.json' with { type: 'json' };
|
|
10
|
+
import gaugeChildABI from '../abis/gauge_child.json' with { type: 'json' };
|
|
11
|
+
import gaugeRewardsOnlyABI from '../abis/gauge_rewards_only.json' with { type: 'json' };
|
|
12
|
+
import streamerABI from '../abis/streamer.json' with { type: 'json' };
|
|
13
13
|
export const POOLS_DATA_FANTOM = lowerCasePoolDataAddresses({
|
|
14
14
|
'2pool': {
|
|
15
15
|
name: "2pool",
|
|
@@ -45,7 +45,7 @@ export const POOLS_DATA_FANTOM = lowerCasePoolDataAddresses({
|
|
|
45
45
|
swap_address: '0x92d5ebf3593a92888c25c0abef126583d4b5312e',
|
|
46
46
|
token_address: '0x92d5ebf3593a92888c25c0abef126583d4b5312e',
|
|
47
47
|
// old_gauge: '0x4f3E8F405CF5aFC05D68142F3783bDfE13811522', // Unused
|
|
48
|
-
gauge_address: '0x06e3C4da96fd076b97b7ca3Ae23527314b6140dF',
|
|
48
|
+
gauge_address: '0x06e3C4da96fd076b97b7ca3Ae23527314b6140dF', // Old non-cross-chain gauge
|
|
49
49
|
deposit_address: '0xa42bd395f183726d1a8774cfa795771f8acfd777',
|
|
50
50
|
sCurveRewards_address: '0xfe1a3dd8b169fb5bf0d5dbfe813d956f39ff6310',
|
|
51
51
|
is_meta: true,
|
|
@@ -129,7 +129,7 @@ export const POOLS_DATA_FANTOM = lowerCasePoolDataAddresses({
|
|
|
129
129
|
reference_asset: "USD",
|
|
130
130
|
swap_address: '0x4FC8D635c3cB1d0aa123859e2B2587d0FF2707b1',
|
|
131
131
|
token_address: '0xDf38ec60c0eC001142a33eAa039e49E9b84E64ED',
|
|
132
|
-
gauge_address: '0xDee85272EAe1aB4afBc6433F4d819BaBC9c7045A',
|
|
132
|
+
gauge_address: '0xDee85272EAe1aB4afBc6433F4d819BaBC9c7045A', // Old non-cross-chain gauge
|
|
133
133
|
sCurveRewards_address: '0x92bbf58c2a4514d44343b987d608627eb7d1d24f',
|
|
134
134
|
is_lending: true,
|
|
135
135
|
underlying_coins: ['DAI', 'USDC', 'fUSDT'],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { lowerCasePoolDataAddresses } from "../utils.js";
|
|
2
|
-
import tripoolSwapABI from '../abis/3pool-optimism/swap.json'
|
|
3
|
-
import gaugeChildABI from '../abis/gauge_child.json'
|
|
2
|
+
import tripoolSwapABI from '../abis/3pool-optimism/swap.json' with { type: 'json' };
|
|
3
|
+
import gaugeChildABI from '../abis/gauge_child.json' with { type: 'json' };
|
|
4
4
|
export const POOLS_DATA_MOONBEAM = lowerCasePoolDataAddresses({
|
|
5
5
|
'3pool': {
|
|
6
6
|
name: "3pool",
|
|
@@ -9,7 +9,7 @@ export const POOLS_DATA_MOONBEAM = lowerCasePoolDataAddresses({
|
|
|
9
9
|
reference_asset: 'USD',
|
|
10
10
|
swap_address: '0xace58a26b8db90498ef0330fdc9c2655db0c45e2',
|
|
11
11
|
token_address: '0xace58a26b8db90498ef0330fdc9c2655db0c45e2',
|
|
12
|
-
gauge_address: '0x0000000000000000000000000000000000000000',
|
|
12
|
+
gauge_address: '0x0000000000000000000000000000000000000000', // NO GAUGE
|
|
13
13
|
is_plain: true,
|
|
14
14
|
underlying_coins: ['DAI', 'USDC', 'USDT'],
|
|
15
15
|
wrapped_coins: ['DAI', 'USDC', 'USDT'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { lowerCasePoolDataAddresses } from "../utils.js";
|
|
2
|
-
import tripoolSwapABI from '../abis/3pool-optimism/swap.json'
|
|
3
|
-
import wstETHSwapABI from '../abis/wsteth/swap.json'
|
|
4
|
-
import gaugeChildABI from '../abis/gauge_child.json'
|
|
2
|
+
import tripoolSwapABI from '../abis/3pool-optimism/swap.json' with { type: 'json' };
|
|
3
|
+
import wstETHSwapABI from '../abis/wsteth/swap.json' with { type: 'json' };
|
|
4
|
+
import gaugeChildABI from '../abis/gauge_child.json' with { type: 'json' };
|
|
5
5
|
export const POOLS_DATA_OPTIMISM = lowerCasePoolDataAddresses({
|
|
6
6
|
'3pool': {
|
|
7
7
|
name: "3pool",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { lowerCasePoolDataAddresses } from "../utils.js";
|
|
2
|
-
import aaveSwapABI from '../abis/aave/swap.json'
|
|
3
|
-
import renSwapABI from '../abis/ren-polygon/swap.json'
|
|
4
|
-
import atricrypto3Swap from '../abis/atricrypto3/swap.json'
|
|
5
|
-
import atricrypto3Zap from '../abis/atricrypto3/zap.json'
|
|
6
|
-
import eurtusdSwap from '../abis/eurtusd/swap.json'
|
|
7
|
-
import eurtusdZap from '../abis/eurtusd/deposit.json'
|
|
8
|
-
import gaugeChildABI from '../abis/gauge_child.json'
|
|
2
|
+
import aaveSwapABI from '../abis/aave/swap.json' with { type: 'json' };
|
|
3
|
+
import renSwapABI from '../abis/ren-polygon/swap.json' with { type: 'json' };
|
|
4
|
+
import atricrypto3Swap from '../abis/atricrypto3/swap.json' with { type: 'json' };
|
|
5
|
+
import atricrypto3Zap from '../abis/atricrypto3/zap.json' with { type: 'json' };
|
|
6
|
+
import eurtusdSwap from '../abis/eurtusd/swap.json' with { type: 'json' };
|
|
7
|
+
import eurtusdZap from '../abis/eurtusd/deposit.json' with { type: 'json' };
|
|
8
|
+
import gaugeChildABI from '../abis/gauge_child.json' with { type: 'json' };
|
|
9
9
|
export const POOLS_DATA_POLYGON = lowerCasePoolDataAddresses({
|
|
10
10
|
aave: {
|
|
11
11
|
name: "aave",
|
|
@@ -84,15 +84,15 @@ export const POOLS_DATA_POLYGON = lowerCasePoolDataAddresses({
|
|
|
84
84
|
underlying_coins: ['DAI', 'USDC.e', 'USDT', 'WBTC', 'WETH'],
|
|
85
85
|
wrapped_coins: ['am3CRV', 'amWBTC', 'amWETH'],
|
|
86
86
|
underlying_coin_addresses: [
|
|
87
|
-
'0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
|
|
88
|
-
'0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
|
|
89
|
-
'0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
|
|
90
|
-
'0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6',
|
|
87
|
+
'0x8f3cf7ad23cd3cadbd9735aff958023239c6a063', // DAI
|
|
88
|
+
'0x2791bca1f2de4661ed88a30c99a7a9449aa84174', // USDC.e
|
|
89
|
+
'0xc2132d05d31c914a87c6611c10748aeb04b58e8f', // USDT
|
|
90
|
+
'0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6', // WBTC
|
|
91
91
|
'0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619', // WETH
|
|
92
92
|
],
|
|
93
93
|
wrapped_coin_addresses: [
|
|
94
|
-
'0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171',
|
|
95
|
-
'0x5c2ed810328349100A66B82b78a1791B101C9D61',
|
|
94
|
+
'0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171', // am3CRV
|
|
95
|
+
'0x5c2ed810328349100A66B82b78a1791B101C9D61', // amWBTC
|
|
96
96
|
'0x28424507fefb6f7f8E9D3860F56504E4e5f5f390', // amWETH
|
|
97
97
|
],
|
|
98
98
|
underlying_decimals: [18, 6, 6, 8, 18],
|
|
@@ -118,13 +118,13 @@ export const POOLS_DATA_POLYGON = lowerCasePoolDataAddresses({
|
|
|
118
118
|
underlying_coins: ['EURT', 'DAI', 'USDC.e', 'USDT'],
|
|
119
119
|
wrapped_coins: ['EURT', 'am3CRV'],
|
|
120
120
|
underlying_coin_addresses: [
|
|
121
|
-
'0x7BDF330f423Ea880FF95fC41A280fD5eCFD3D09f',
|
|
122
|
-
'0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
|
|
123
|
-
'0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
|
|
121
|
+
'0x7BDF330f423Ea880FF95fC41A280fD5eCFD3D09f', // EURT
|
|
122
|
+
'0x8f3cf7ad23cd3cadbd9735aff958023239c6a063', // DAI
|
|
123
|
+
'0x2791bca1f2de4661ed88a30c99a7a9449aa84174', // USDC.e
|
|
124
124
|
'0xc2132d05d31c914a87c6611c10748aeb04b58e8f', // USDT
|
|
125
125
|
],
|
|
126
126
|
wrapped_coin_addresses: [
|
|
127
|
-
'0x7BDF330f423Ea880FF95fC41A280fD5eCFD3D09f',
|
|
127
|
+
'0x7BDF330f423Ea880FF95fC41A280fD5eCFD3D09f', // EURT
|
|
128
128
|
'0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171', // am3CRV
|
|
129
129
|
],
|
|
130
130
|
underlying_decimals: [6, 18, 6, 6],
|
|
@@ -148,13 +148,13 @@ export const POOLS_DATA_POLYGON = lowerCasePoolDataAddresses({
|
|
|
148
148
|
underlying_coins: ['EURS', 'DAI', 'USDC.e', 'USDT'],
|
|
149
149
|
wrapped_coins: ['EURS', 'am3CRV'],
|
|
150
150
|
underlying_coin_addresses: [
|
|
151
|
-
'0xe111178a87a3bff0c8d18decba5798827539ae99',
|
|
152
|
-
'0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
|
|
153
|
-
'0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
|
|
151
|
+
'0xe111178a87a3bff0c8d18decba5798827539ae99', // EURS
|
|
152
|
+
'0x8f3cf7ad23cd3cadbd9735aff958023239c6a063', // DAI
|
|
153
|
+
'0x2791bca1f2de4661ed88a30c99a7a9449aa84174', // USDC.e
|
|
154
154
|
'0xc2132d05d31c914a87c6611c10748aeb04b58e8f', // USDT
|
|
155
155
|
],
|
|
156
156
|
wrapped_coin_addresses: [
|
|
157
|
-
'0xe111178a87a3bff0c8d18decba5798827539ae99',
|
|
157
|
+
'0xe111178a87a3bff0c8d18decba5798827539ae99', // EURS
|
|
158
158
|
'0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171', // am3CRV
|
|
159
159
|
],
|
|
160
160
|
underlying_decimals: [2, 18, 6, 6],
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { lowerCasePoolDataAddresses } from "../utils.js";
|
|
2
|
-
import tripoolSwapABI from '../abis/3pool/swap.json'
|
|
3
|
-
import raiSwapABI from '../abis/rai/swap.json'
|
|
4
|
-
import raiZapABI from '../abis/rai/deposit.json'
|
|
5
|
-
import tricryptoSwapABI from '../abis/tricrypto-xdai/swap.json'
|
|
6
|
-
import tricryptoZapABI from '../abis/tricrypto-xdai/zap.json'
|
|
7
|
-
import eureSwapABI from "../abis/eureusd/swap.json"
|
|
8
|
-
import eureDepositABI from "../abis/eureusd/zap.json"
|
|
9
|
-
import gaugeRewardsOnlyABI from '../abis/gauge_rewards_only.json'
|
|
10
|
-
import gaugeChildABI from '../abis/gauge_child.json'
|
|
11
|
-
import streamerABI from '../abis/streamer.json'
|
|
2
|
+
import tripoolSwapABI from '../abis/3pool/swap.json' with { type: 'json' };
|
|
3
|
+
import raiSwapABI from '../abis/rai/swap.json' with { type: 'json' };
|
|
4
|
+
import raiZapABI from '../abis/rai/deposit.json' with { type: 'json' };
|
|
5
|
+
import tricryptoSwapABI from '../abis/tricrypto-xdai/swap.json' with { type: 'json' };
|
|
6
|
+
import tricryptoZapABI from '../abis/tricrypto-xdai/zap.json' with { type: 'json' };
|
|
7
|
+
import eureSwapABI from "../abis/eureusd/swap.json" with { type: 'json' };
|
|
8
|
+
import eureDepositABI from "../abis/eureusd/zap.json" with { type: 'json' };
|
|
9
|
+
import gaugeRewardsOnlyABI from '../abis/gauge_rewards_only.json' with { type: 'json' };
|
|
10
|
+
import gaugeChildABI from '../abis/gauge_child.json' with { type: 'json' };
|
|
11
|
+
import streamerABI from '../abis/streamer.json' with { type: 'json' };
|
|
12
12
|
export const POOLS_DATA_XDAI = lowerCasePoolDataAddresses({
|
|
13
13
|
'3pool': {
|
|
14
14
|
name: "3pool",
|
|
@@ -45,7 +45,7 @@ export const POOLS_DATA_XDAI = lowerCasePoolDataAddresses({
|
|
|
45
45
|
reference_asset: 'USD',
|
|
46
46
|
swap_address: '0x85bA9Dfb4a3E4541420Fc75Be02E2B42042D7e46',
|
|
47
47
|
token_address: '0x36390a1Ae126f16C5D222CB1F2AB341dD09f2FEC',
|
|
48
|
-
gauge_address: '0x0000000000000000000000000000000000000000',
|
|
48
|
+
gauge_address: '0x0000000000000000000000000000000000000000', // NO GAUGE
|
|
49
49
|
deposit_address: '0xdf6eb52c4A9d7d5964b918c50D47a643Fd7D3D4c',
|
|
50
50
|
is_meta: true,
|
|
51
51
|
base_pool: '3pool',
|
|
@@ -74,7 +74,7 @@ export const POOLS_DATA_XDAI = lowerCasePoolDataAddresses({
|
|
|
74
74
|
reference_asset: 'CRYPTO',
|
|
75
75
|
swap_address: '0x5633E00994896D0F472926050eCb32E38bef3e65',
|
|
76
76
|
token_address: '0x02E7e2dd3BA409148A49D5cc9a9034D2f884F245',
|
|
77
|
-
gauge_address: '0x0000000000000000000000000000000000000000',
|
|
77
|
+
gauge_address: '0x0000000000000000000000000000000000000000', // NO GAUGE
|
|
78
78
|
deposit_address: '0xF182926A64C0A19234E7E1FCDfE772aA7A1CA351',
|
|
79
79
|
is_crypto: true,
|
|
80
80
|
is_meta: true,
|
|
@@ -97,7 +97,7 @@ export const POOLS_DATA_XDAI = lowerCasePoolDataAddresses({
|
|
|
97
97
|
underlying_decimals: [18, 6, 6, 8, 18],
|
|
98
98
|
wrapped_decimals: [18, 8, 18],
|
|
99
99
|
swap_abi: tricryptoSwapABI,
|
|
100
|
-
gauge_abi: gaugeRewardsOnlyABI,
|
|
100
|
+
gauge_abi: gaugeRewardsOnlyABI, // No use
|
|
101
101
|
deposit_abi: tricryptoZapABI,
|
|
102
102
|
},
|
|
103
103
|
eureusd: {
|
package/lib/curve.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ declare class Curve implements ICurve {
|
|
|
50
50
|
maxPriorityFeePerGas?: number;
|
|
51
51
|
chainId?: number;
|
|
52
52
|
}): Promise<void>;
|
|
53
|
-
initContract: (address: string, abi: any, provider:
|
|
53
|
+
initContract: (address: string, abi: any, provider: BrowserProvider | JsonRpcProvider | Signer) => Contract;
|
|
54
54
|
initMulticallContract: (address: string, abi: any) => MulticallContract;
|
|
55
55
|
setContract(address: string | undefined, abi: any): void;
|
|
56
56
|
_filterHiddenPools(pools: IDict<IPoolData>): Promise<IDict<IPoolData>>;
|
package/lib/curve.js
CHANGED
|
@@ -15,34 +15,34 @@ import { getFactoryPoolData } from "./factory/factory.js";
|
|
|
15
15
|
import { getFactoryPoolsDataFromApi } from "./factory/factory-api.js";
|
|
16
16
|
import { getCryptoFactoryPoolData } from "./factory/factory-crypto.js";
|
|
17
17
|
import { getTricryptoFactoryPoolData } from "./factory/factory-tricrypto.js";
|
|
18
|
-
import ERC20Abi from './constants/abis/ERC20.json'
|
|
19
|
-
import cERC20Abi from './constants/abis/cERC20.json'
|
|
20
|
-
import yERC20Abi from './constants/abis/yERC20.json'
|
|
21
|
-
import childGaugeFactoryABI from './constants/abis/gauge_factory/child_gauge_factory.json'
|
|
22
|
-
import minterMainnetABI from './constants/abis/minter_mainnet.json'
|
|
23
|
-
import votingEscrowABI from './constants/abis/votingescrow.json'
|
|
24
|
-
import anycallABI from './constants/abis/anycall.json'
|
|
25
|
-
import votingEscrowOracleABI from './constants/abis/voting_escrow_oracle.json'
|
|
26
|
-
import votingEscrowOracleEthABI from './constants/abis/voting_escrow_oracle_eth.json'
|
|
27
|
-
import feeDistributorABI from './constants/abis/fee_distributor.json'
|
|
28
|
-
import feeDistributorCrvUSDABI from './constants/abis/fee_distributor_crvusd.json'
|
|
29
|
-
import gaugeControllerABI from './constants/abis/gaugecontroller.json'
|
|
30
|
-
import depositAndStakeABI from './constants/abis/deposit_and_stake.json'
|
|
31
|
-
import depositAndStakeNgOnlyABI from './constants/abis/deposit_and_stake_ng_only.json'
|
|
18
|
+
import ERC20Abi from './constants/abis/ERC20.json' with { type: 'json' };
|
|
19
|
+
import cERC20Abi from './constants/abis/cERC20.json' with { type: 'json' };
|
|
20
|
+
import yERC20Abi from './constants/abis/yERC20.json' with { type: 'json' };
|
|
21
|
+
import childGaugeFactoryABI from './constants/abis/gauge_factory/child_gauge_factory.json' with { type: 'json' };
|
|
22
|
+
import minterMainnetABI from './constants/abis/minter_mainnet.json' with { type: 'json' };
|
|
23
|
+
import votingEscrowABI from './constants/abis/votingescrow.json' with { type: 'json' };
|
|
24
|
+
import anycallABI from './constants/abis/anycall.json' with { type: 'json' };
|
|
25
|
+
import votingEscrowOracleABI from './constants/abis/voting_escrow_oracle.json' with { type: 'json' };
|
|
26
|
+
import votingEscrowOracleEthABI from './constants/abis/voting_escrow_oracle_eth.json' with { type: 'json' };
|
|
27
|
+
import feeDistributorABI from './constants/abis/fee_distributor.json' with { type: 'json' };
|
|
28
|
+
import feeDistributorCrvUSDABI from './constants/abis/fee_distributor_crvusd.json' with { type: 'json' };
|
|
29
|
+
import gaugeControllerABI from './constants/abis/gaugecontroller.json' with { type: 'json' };
|
|
30
|
+
import depositAndStakeABI from './constants/abis/deposit_and_stake.json' with { type: 'json' };
|
|
31
|
+
import depositAndStakeNgOnlyABI from './constants/abis/deposit_and_stake_ng_only.json' with { type: 'json' };
|
|
32
32
|
import cryptoCalcZapABI from './constants/abis/crypto_calc.json' assert { type: 'json' };
|
|
33
|
-
import StableCalcZapABI from './constants/abis/stable_calc.json'
|
|
34
|
-
import routerABI from './constants/abis/router.json'
|
|
35
|
-
import routerPolygonABI from './constants/abis/routerPolygon.json'
|
|
36
|
-
import routerNgPoolsOnlyABI from './constants/abis/router-ng-pools-only.json'
|
|
37
|
-
import streamerABI from './constants/abis/streamer.json'
|
|
38
|
-
import factoryABI from './constants/abis/factory.json'
|
|
39
|
-
import factoryEywaABI from './constants/abis/factory-eywa.json'
|
|
40
|
-
import factoryAdminABI from './constants/abis/factory-admin.json'
|
|
41
|
-
import cryptoFactoryABI from './constants/abis/factory-crypto.json'
|
|
42
|
-
import twocryptoFactoryABI from './constants/abis/factory-twocrypto-ng.json'
|
|
43
|
-
import tricryptoFactoryMainnetABI from './constants/abis/factory-tricrypto-mainnet.json'
|
|
44
|
-
import tricryptoFactorySidechainABI from './constants/abis/factory-tricrypto-sidechain.json'
|
|
45
|
-
import stableNgFactoryABI from './constants/abis/factory-stable-ng.json'
|
|
33
|
+
import StableCalcZapABI from './constants/abis/stable_calc.json' with { type: 'json' };
|
|
34
|
+
import routerABI from './constants/abis/router.json' with { type: 'json' };
|
|
35
|
+
import routerPolygonABI from './constants/abis/routerPolygon.json' with { type: 'json' };
|
|
36
|
+
import routerNgPoolsOnlyABI from './constants/abis/router-ng-pools-only.json' with { type: 'json' };
|
|
37
|
+
import streamerABI from './constants/abis/streamer.json' with { type: 'json' };
|
|
38
|
+
import factoryABI from './constants/abis/factory.json' with { type: 'json' };
|
|
39
|
+
import factoryEywaABI from './constants/abis/factory-eywa.json' with { type: 'json' };
|
|
40
|
+
import factoryAdminABI from './constants/abis/factory-admin.json' with { type: 'json' };
|
|
41
|
+
import cryptoFactoryABI from './constants/abis/factory-crypto.json' with { type: 'json' };
|
|
42
|
+
import twocryptoFactoryABI from './constants/abis/factory-twocrypto-ng.json' with { type: 'json' };
|
|
43
|
+
import tricryptoFactoryMainnetABI from './constants/abis/factory-tricrypto-mainnet.json' with { type: 'json' };
|
|
44
|
+
import tricryptoFactorySidechainABI from './constants/abis/factory-tricrypto-sidechain.json' with { type: 'json' };
|
|
45
|
+
import stableNgFactoryABI from './constants/abis/factory-stable-ng.json' with { type: 'json' };
|
|
46
46
|
import gasOracleABI from './constants/abis/gas_oracle_optimism.json' assert { type: 'json' };
|
|
47
47
|
import gasOracleBlobABI from './constants/abis/gas_oracle_optimism_blob.json' assert { type: 'json' };
|
|
48
48
|
import votingProposalABI from './constants/abis/voting_proposal.json' assert { type: 'json' };
|
|
@@ -84,7 +84,7 @@ class Curve {
|
|
|
84
84
|
constructor() {
|
|
85
85
|
this.initContract = memoizedContract();
|
|
86
86
|
this.initMulticallContract = memoizedMulticallContract();
|
|
87
|
-
this.fetchFactoryPools = (
|
|
87
|
+
this.fetchFactoryPools = (...args_1) => __awaiter(this, [...args_1], void 0, function* (useApi = true) {
|
|
88
88
|
if (!("factory" in this.constants.ALIASES))
|
|
89
89
|
return;
|
|
90
90
|
if (useApi) {
|
|
@@ -97,7 +97,7 @@ class Curve {
|
|
|
97
97
|
this._updateDecimalsAndGauges(this.constants.FACTORY_POOLS_DATA);
|
|
98
98
|
this.constants.FACTORY_GAUGE_IMPLEMENTATIONS["factory"] = yield this.contracts[this.constants.ALIASES.factory].contract.gauge_implementation(this.constantOptions);
|
|
99
99
|
});
|
|
100
|
-
this.fetchCrvusdFactoryPools = (
|
|
100
|
+
this.fetchCrvusdFactoryPools = (...args_1) => __awaiter(this, [...args_1], void 0, function* (useApi = true) {
|
|
101
101
|
if (!("crvusd_factory" in this.constants.ALIASES))
|
|
102
102
|
return;
|
|
103
103
|
if (useApi) {
|
|
@@ -109,7 +109,7 @@ class Curve {
|
|
|
109
109
|
this.constants.CRVUSD_FACTORY_POOLS_DATA = yield this._filterHiddenPools(this.constants.CRVUSD_FACTORY_POOLS_DATA);
|
|
110
110
|
this._updateDecimalsAndGauges(this.constants.CRVUSD_FACTORY_POOLS_DATA);
|
|
111
111
|
});
|
|
112
|
-
this.fetchEywaFactoryPools = (
|
|
112
|
+
this.fetchEywaFactoryPools = (...args_1) => __awaiter(this, [...args_1], void 0, function* (useApi = true) {
|
|
113
113
|
if (!("eywa_factory" in this.constants.ALIASES))
|
|
114
114
|
return;
|
|
115
115
|
if (useApi) {
|
|
@@ -121,7 +121,7 @@ class Curve {
|
|
|
121
121
|
this.constants.EYWA_FACTORY_POOLS_DATA = yield this._filterHiddenPools(this.constants.EYWA_FACTORY_POOLS_DATA);
|
|
122
122
|
this._updateDecimalsAndGauges(this.constants.EYWA_FACTORY_POOLS_DATA);
|
|
123
123
|
});
|
|
124
|
-
this.fetchCryptoFactoryPools = (
|
|
124
|
+
this.fetchCryptoFactoryPools = (...args_1) => __awaiter(this, [...args_1], void 0, function* (useApi = true) {
|
|
125
125
|
if (!("crypto_factory" in this.constants.ALIASES))
|
|
126
126
|
return;
|
|
127
127
|
if (useApi) {
|
|
@@ -134,7 +134,7 @@ class Curve {
|
|
|
134
134
|
this._updateDecimalsAndGauges(this.constants.CRYPTO_FACTORY_POOLS_DATA);
|
|
135
135
|
this.constants.FACTORY_GAUGE_IMPLEMENTATIONS["factory-crypto"] = yield this.contracts[this.constants.ALIASES.crypto_factory].contract.gauge_implementation(this.constantOptions);
|
|
136
136
|
});
|
|
137
|
-
this.fetchStableNgFactoryPools = (
|
|
137
|
+
this.fetchStableNgFactoryPools = (...args_1) => __awaiter(this, [...args_1], void 0, function* (useApi = true) {
|
|
138
138
|
if (!("stable_ng_factory" in this.constants.ALIASES))
|
|
139
139
|
return;
|
|
140
140
|
if (useApi) {
|
|
@@ -146,7 +146,7 @@ class Curve {
|
|
|
146
146
|
this.constants.STABLE_NG_FACTORY_POOLS_DATA = yield this._filterHiddenPools(this.constants.STABLE_NG_FACTORY_POOLS_DATA);
|
|
147
147
|
this._updateDecimalsAndGauges(this.constants.STABLE_NG_FACTORY_POOLS_DATA);
|
|
148
148
|
});
|
|
149
|
-
this.fetchTworyptoFactoryPools = (
|
|
149
|
+
this.fetchTworyptoFactoryPools = (...args_1) => __awaiter(this, [...args_1], void 0, function* (useApi = true) {
|
|
150
150
|
if (!("twocrypto_factory" in this.constants.ALIASES))
|
|
151
151
|
return;
|
|
152
152
|
if (useApi) {
|
|
@@ -166,7 +166,7 @@ class Curve {
|
|
|
166
166
|
yield this.contracts[this.constants.ALIASES.child_gauge_factory].contract.get_implementation(this.constantOptions);
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
this.fetchTricryptoFactoryPools = (
|
|
169
|
+
this.fetchTricryptoFactoryPools = (...args_1) => __awaiter(this, [...args_1], void 0, function* (useApi = true) {
|
|
170
170
|
if (!("tricrypto_factory" in this.constants.ALIASES))
|
|
171
171
|
return;
|
|
172
172
|
if (useApi) {
|
|
@@ -340,10 +340,10 @@ class Curve {
|
|
|
340
340
|
ZERO_ADDRESS: ethers.ZeroAddress,
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
init(
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
343
|
+
init(providerType_1, providerSettings_1) {
|
|
344
|
+
return __awaiter(this, arguments, void 0, function* (providerType, providerSettings, options = {} // gasPrice in Gwei
|
|
345
|
+
) {
|
|
346
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
347
347
|
// @ts-ignore
|
|
348
348
|
this.provider = null;
|
|
349
349
|
// @ts-ignore
|