@curvefi/api 2.3.4 → 2.4.2

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/README.md CHANGED
@@ -424,6 +424,7 @@ import curve from "@curvefi/api";
424
424
 
425
425
  await compound.stats.parameters();
426
426
  // {
427
+ // lpTokenSupply: '66658430.461661546713781772',
427
428
  // virtualPrice: '1.107067773320466717',
428
429
  // fee: '0.04',
429
430
  // adminFee: '0.02',
@@ -1070,21 +1071,94 @@ import curve from "@curvefi/api";
1070
1071
  })()
1071
1072
  ```
1072
1073
 
1073
- ## Rewards
1074
+ ## CRV. Profit, claim, boosting
1074
1075
  ```ts
1075
1076
  import curve from "@curvefi/api";
1076
1077
 
1077
1078
  (async () => {
1078
- await curve.init('JsonRpc', {}, { gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0 });
1079
-
1080
- const pool = curve.getPool('susd');
1079
+ await curve.init('JsonRpc', {}, { gasPrice: 0 });
1081
1080
 
1082
- // CRV
1081
+ const pool = curve.getPool('compound');
1082
+
1083
+ await pool.depositAndStake([1000, 1000]);
1084
+ await pool.crvProfit();
1085
+ // {
1086
+ // day: '0.01861607837347995222',
1087
+ // week: '0.13031254861435966551',
1088
+ // month: '0.55848235120439856649',
1089
+ // year: '6.79486860632018255891',
1090
+ // token: '0xd533a949740bb3306d119cc777fa900ba034cd52',
1091
+ // symbol: 'CRV',
1092
+ // price: 0.978134
1093
+ // }
1094
+ await pool.stats.tokenApy();
1095
+ // [ '0.3324', '0.8309' ]
1096
+ await pool.currentCrvApy();
1097
+ // 0.3324
1098
+ await pool.boost();
1099
+ // 1.0
1100
+
1101
+ await curve.boosting.createLock(10000, 365 * 4);
1102
+ await pool.depositAndStake([1000, 1000]);
1103
+ // crvProfit = {
1104
+ // day: '0.05703837081508656944',
1105
+ // week: '0.39926859570560598606',
1106
+ // month: '1.7111511244525970831',
1107
+ // year: '20.81900534750659784443',
1108
+ // token: '0xd533a949740bb3306d119cc777fa900ba034cd52',
1109
+ // symbol: 'CRV',
1110
+ // price: 0.978134
1111
+ // }
1112
+ //
1113
+ // currentApy = 0.5092
1114
+ // boost = 1.532
1115
+
1116
+ await pool.wallet.lpTokenBalances();
1117
+ // { lpToken: '0.0', gauge: '3610.795806899650569624' }
1118
+ await pool.maxBoostedStake();
1119
+ // 1281.660714834072909477
1120
+
1121
+ // ------ Wait some time... ------
1083
1122
  await pool.claimableCrv();
1084
- // 0.006296257916265276
1123
+ // 0.4085482040149887
1085
1124
  await pool.claimCrv();
1125
+ // claimableCrv = 0.0
1126
+ })()
1127
+ ```
1128
+
1129
+ ## Rewards. Profit and claim
1130
+ ```ts
1131
+ import curve from "@curvefi/api";
1086
1132
 
1087
- // Additional rewards
1133
+ (async () => {
1134
+ await curve.init('JsonRpc', {}, { gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0 });
1135
+
1136
+ const pool = curve.getPool('susd');
1137
+
1138
+ await pool.rewardTokens();
1139
+ // [
1140
+ // {
1141
+ // token: '0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f',
1142
+ // symbol: 'SNX',
1143
+ // decimals: 18
1144
+ // }
1145
+ // ]
1146
+ await pool.depositAndStake([1000, 1000, 1000, 1000]);
1147
+ await pool.rewardsProfit();
1148
+ // [
1149
+ // {
1150
+ // day: '0.02387645750842563304',
1151
+ // week: '0.16713520255897943129',
1152
+ // month: '0.71629372525276899123',
1153
+ // year: '8.71490699057535605995',
1154
+ // token: '0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f',
1155
+ // symbol: 'SNX',
1156
+ // price: 2.61
1157
+ // }
1158
+ // ]
1159
+
1160
+ // ------ Wait some time... ------
1161
+
1088
1162
  await pool.claimableRewards();
1089
1163
  // [
1090
1164
  // {
@@ -1094,8 +1168,56 @@ import curve from "@curvefi/api";
1094
1168
  // }
1095
1169
  // ]
1096
1170
  await pool.claimRewards();
1171
+ // claimableRewards = [
1172
+ // {
1173
+ // token: '0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f',
1174
+ // symbol: 'SNX',
1175
+ // amount: '0.0'
1176
+ // }
1177
+ // ]
1097
1178
  })()
1098
1179
  ```
1180
+ ## User balances, base profit and share
1181
+ ```ts
1182
+ (async () => {
1183
+ await curve.init('JsonRpc', {}, { gasPrice: 0 });
1184
+
1185
+ const pool = curve.getPool('frax');
1186
+
1187
+ await pool.deposit([1000, 1000, 1000, 1000]);
1188
+ // { lpToken: '3967.761942945398518479', gauge: '0.0' }
1189
+ await pool.stake(2000);
1190
+ // { lpToken: '1967.761942945398518479', gauge: '2000.0' }
1191
+
1192
+ await pool.userBalances();
1193
+ // [
1194
+ // '2489.266644542275414077',
1195
+ // '276.21290758040371998',
1196
+ // '280.160024',
1197
+ // '955.058471'
1198
+ // ]
1199
+ await pool.userWrappedBalances();
1200
+ // [ '2489.266644542275414077', '1479.135765218522838249' ]
1201
+ await pool.userLiquidityUSD();
1202
+ // 4003.16466431
1203
+ await pool.baseProfit();
1204
+ // {
1205
+ // day: '0.01476134356908610233',
1206
+ // week: '0.1036132769753159106',
1207
+ // month: '0.44899086689303561258',
1208
+ // year: '5.38789040271642735101374407'
1209
+ // }
1210
+ await pool.userShare();
1211
+ // {
1212
+ // lpUser: '3967.761942945398518479',
1213
+ // lpTotal: '1124490985.047288488832152598',
1214
+ // lpShare: '0.000352849600015116',
1215
+ // gaugeUser: '2000.0',
1216
+ // gaugeTotal: '1123703753.306098922471106555',
1217
+ // gaugeShare: '0.000177982853053192'
1218
+ // }
1219
+ })()
1220
+ ````
1099
1221
 
1100
1222
  ## Gas estimation
1101
1223
  Every non-constant method has corresponding gas estimation method. Rule: ```obj.method -> obj.estimateGas.method```
@@ -17,17 +17,16 @@ var deposit_json_2 = __importDefault(require("../abis/usdt/deposit.json"));
17
17
  var swap_json_2 = __importDefault(require("../abis/usdt/swap.json"));
18
18
  var deposit_json_3 = __importDefault(require("../abis/iearn/deposit.json"));
19
19
  var swap_json_3 = __importDefault(require("../abis/iearn/swap.json"));
20
- var sCurveRewards_json_1 = __importDefault(require("../abis/iearn/sCurveRewards.json"));
21
20
  var deposit_json_4 = __importDefault(require("../abis/busd/deposit.json"));
22
21
  var swap_json_4 = __importDefault(require("../abis/busd/swap.json"));
23
22
  var deposit_json_5 = __importDefault(require("../abis/susdv2/deposit.json"));
24
23
  var swap_json_5 = __importDefault(require("../abis/susdv2/swap.json"));
25
- var sCurveRewards_json_2 = __importDefault(require("../abis/susdv2/sCurveRewards.json"));
24
+ var sCurveRewards_json_1 = __importDefault(require("../abis/susdv2/sCurveRewards.json"));
26
25
  var deposit_json_6 = __importDefault(require("../abis/pax/deposit.json"));
27
26
  var swap_json_6 = __importDefault(require("../abis/pax/swap.json"));
28
27
  var swap_json_7 = __importDefault(require("../abis/ren/swap.json"));
29
28
  var swap_json_8 = __importDefault(require("../abis/sbtc/swap.json"));
30
- var sCurveRewards_json_3 = __importDefault(require("../abis/sbtc/sCurveRewards.json"));
29
+ var sCurveRewards_json_2 = __importDefault(require("../abis/sbtc/sCurveRewards.json"));
31
30
  var swap_json_9 = __importDefault(require("../abis/hbtc/swap.json"));
32
31
  var swap_json_10 = __importDefault(require("../abis/3pool/swap.json"));
33
32
  var swap_json_11 = __importDefault(require("../abis/gusd/swap.json"));
@@ -40,36 +39,36 @@ var swap_json_14 = __importDefault(require("../abis/usdn/swap.json"));
40
39
  var deposit_json_10 = __importDefault(require("../abis/usdn/deposit.json"));
41
40
  var swap_json_15 = __importDefault(require("../abis/musd/swap.json"));
42
41
  var deposit_json_11 = __importDefault(require("../abis/musd/deposit.json"));
43
- var sCurveRewards_json_4 = __importDefault(require("../abis/musd/sCurveRewards.json"));
42
+ var sCurveRewards_json_3 = __importDefault(require("../abis/musd/sCurveRewards.json"));
44
43
  var swap_json_16 = __importDefault(require("../abis/rsv/swap.json"));
45
44
  var deposit_json_12 = __importDefault(require("../abis/rsv/deposit.json"));
46
- var sCurveRewards_json_5 = __importDefault(require("../abis/rsv/sCurveRewards.json"));
45
+ var sCurveRewards_json_4 = __importDefault(require("../abis/rsv/sCurveRewards.json"));
47
46
  var swap_json_17 = __importDefault(require("../abis/tbtc/swap.json"));
48
47
  var deposit_json_13 = __importDefault(require("../abis/tbtc/deposit.json"));
49
- var sCurveRewards_json_6 = __importDefault(require("../abis/tbtc/sCurveRewards.json"));
48
+ var sCurveRewards_json_5 = __importDefault(require("../abis/tbtc/sCurveRewards.json"));
50
49
  var swap_json_18 = __importDefault(require("../abis/dusd/swap.json"));
51
50
  var deposit_json_14 = __importDefault(require("../abis/dusd/deposit.json"));
52
- var sCurveRewards_json_7 = __importDefault(require("../abis/dusd/sCurveRewards.json"));
51
+ var sCurveRewards_json_6 = __importDefault(require("../abis/dusd/sCurveRewards.json"));
53
52
  var swap_json_19 = __importDefault(require("../abis/pbtc/swap.json"));
54
53
  var deposit_json_15 = __importDefault(require("../abis/pbtc/deposit.json"));
55
- var sCurveRewards_json_8 = __importDefault(require("../abis/pbtc/sCurveRewards.json"));
54
+ var sCurveRewards_json_7 = __importDefault(require("../abis/pbtc/sCurveRewards.json"));
56
55
  var swap_json_20 = __importDefault(require("../abis/bbtc/swap.json"));
57
56
  var deposit_json_16 = __importDefault(require("../abis/bbtc/deposit.json"));
58
57
  var swap_json_21 = __importDefault(require("../abis/obtc/swap.json"));
59
58
  var deposit_json_17 = __importDefault(require("../abis/obtc/deposit.json"));
60
- var sCurveRewards_json_9 = __importDefault(require("../abis/obtc/sCurveRewards.json"));
59
+ var sCurveRewards_json_8 = __importDefault(require("../abis/obtc/sCurveRewards.json"));
61
60
  var swap_json_22 = __importDefault(require("../abis/seth/swap.json"));
62
61
  var swap_json_23 = __importDefault(require("../abis/eurs/swap.json"));
63
- var sCurveRewards_json_10 = __importDefault(require("../abis/eurs/sCurveRewards.json"));
62
+ var sCurveRewards_json_9 = __importDefault(require("../abis/eurs/sCurveRewards.json"));
64
63
  var swap_json_24 = __importDefault(require("../abis/ust/swap.json"));
65
64
  var deposit_json_18 = __importDefault(require("../abis/ust/deposit.json"));
66
65
  var swap_json_25 = __importDefault(require("../abis/aave/swap.json"));
67
66
  var rewards_json_1 = __importDefault(require("../abis/aave/rewards.json"));
68
67
  var swap_json_26 = __importDefault(require("../abis/steth/swap.json"));
69
- var sCurveRewards_json_11 = __importDefault(require("../abis/steth/sCurveRewards.json"));
68
+ var sCurveRewards_json_10 = __importDefault(require("../abis/steth/sCurveRewards.json"));
70
69
  var swap_json_27 = __importDefault(require("../abis/saave/swap.json"));
71
70
  var swap_json_28 = __importDefault(require("../abis/ankreth/swap.json"));
72
- var sCurveRewards_json_12 = __importDefault(require("../abis/ankreth/sCurveRewards.json"));
71
+ var sCurveRewards_json_11 = __importDefault(require("../abis/ankreth/sCurveRewards.json"));
73
72
  var swap_json_29 = __importDefault(require("../abis/usdp/swap.json"));
74
73
  var deposit_json_19 = __importDefault(require("../abis/usdp/deposit.json"));
75
74
  var swap_json_30 = __importDefault(require("../abis/ib/swap.json"));
@@ -157,7 +156,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
157
156
  token_address: '0xdF5e0e81Dff6FAF3A7e52BA697820c5e32D806A8',
158
157
  gauge_address: '0xFA712EE4788C042e2B7BB55E6cb8ec569C4530c1',
159
158
  deposit_address: '0xbBC81d23Ea2c3ec7e56D39296F0cbB648873a5d3',
160
- sCurveRewards_address: '0x0001FB050Fe7312791bF6475b96569D83F695C9f',
159
+ // sCurveRewards_address: '0x0001FB050Fe7312791bF6475b96569D83F695C9f',
161
160
  is_lending: true,
162
161
  underlying_coins: ['DAI', 'USDC', 'USDT', 'TUSD'],
163
162
  wrapped_coins: ['yDAI', 'yUSDC', 'yUSDT', 'yTUSD'],
@@ -179,7 +178,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
179
178
  swap_abi: swap_json_3.default,
180
179
  gauge_abi: gauge_json_1.default,
181
180
  deposit_abi: deposit_json_3.default,
182
- sCurveRewards_abi: sCurveRewards_json_1.default,
181
+ // sCurveRewards_abi: iearnSCurveRewardsABI,
183
182
  },
184
183
  busd: {
185
184
  name: "busd",
@@ -242,7 +241,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
242
241
  swap_abi: swap_json_5.default,
243
242
  gauge_abi: gauge_synthetix_json_1.default,
244
243
  deposit_abi: deposit_json_5.default,
245
- sCurveRewards_abi: sCurveRewards_json_2.default,
244
+ sCurveRewards_abi: sCurveRewards_json_1.default,
246
245
  },
247
246
  pax: {
248
247
  name: "pax",
@@ -325,7 +324,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
325
324
  wrapped_decimals: [8, 8, 18],
326
325
  swap_abi: swap_json_8.default,
327
326
  gauge_abi: gauge_synthetix_json_1.default,
328
- sCurveRewards_abi: sCurveRewards_json_3.default,
327
+ sCurveRewards_abi: sCurveRewards_json_2.default,
329
328
  },
330
329
  hbtc: {
331
330
  name: "hbtc",
@@ -522,7 +521,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
522
521
  swap_abi: swap_json_15.default,
523
522
  gauge_abi: gauge_synthetix_json_1.default,
524
523
  deposit_abi: deposit_json_11.default,
525
- sCurveRewards_abi: sCurveRewards_json_4.default,
524
+ sCurveRewards_abi: sCurveRewards_json_3.default,
526
525
  },
527
526
  rsv: {
528
527
  name: "rsv",
@@ -553,7 +552,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
553
552
  swap_abi: swap_json_16.default,
554
553
  gauge_abi: gauge_synthetix_json_1.default,
555
554
  deposit_abi: deposit_json_12.default,
556
- sCurveRewards_abi: sCurveRewards_json_5.default,
555
+ sCurveRewards_abi: sCurveRewards_json_4.default,
557
556
  },
558
557
  tbtc: {
559
558
  name: "tbtc",
@@ -584,7 +583,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
584
583
  swap_abi: swap_json_17.default,
585
584
  gauge_abi: gauge_synthetix_json_1.default,
586
585
  deposit_abi: deposit_json_13.default,
587
- sCurveRewards_abi: sCurveRewards_json_6.default,
586
+ sCurveRewards_abi: sCurveRewards_json_5.default,
588
587
  },
589
588
  dusd: {
590
589
  name: "dusd",
@@ -615,7 +614,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
615
614
  swap_abi: swap_json_18.default,
616
615
  gauge_abi: gauge_synthetix_json_1.default,
617
616
  deposit_abi: deposit_json_14.default,
618
- sCurveRewards_abi: sCurveRewards_json_7.default,
617
+ sCurveRewards_abi: sCurveRewards_json_6.default,
619
618
  },
620
619
  pbtc: {
621
620
  name: "pbtc",
@@ -646,7 +645,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
646
645
  swap_abi: swap_json_19.default,
647
646
  gauge_abi: gauge_v2_json_1.default,
648
647
  deposit_abi: deposit_json_15.default,
649
- sCurveRewards_abi: sCurveRewards_json_8.default,
648
+ sCurveRewards_abi: sCurveRewards_json_7.default,
650
649
  },
651
650
  bbtc: {
652
651
  name: "bbtc",
@@ -706,7 +705,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
706
705
  swap_abi: swap_json_21.default,
707
706
  gauge_abi: gauge_v2_json_1.default,
708
707
  deposit_abi: deposit_json_17.default,
709
- sCurveRewards_abi: sCurveRewards_json_9.default,
708
+ sCurveRewards_abi: sCurveRewards_json_8.default,
710
709
  },
711
710
  seth: {
712
711
  name: "seth",
@@ -756,7 +755,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
756
755
  wrapped_decimals: [2, 18],
757
756
  swap_abi: swap_json_23.default,
758
757
  gauge_abi: gauge_v2_json_1.default,
759
- sCurveRewards_abi: sCurveRewards_json_10.default,
758
+ sCurveRewards_abi: sCurveRewards_json_9.default,
760
759
  },
761
760
  ust: {
762
761
  name: "ust",
@@ -795,7 +794,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
795
794
  swap_address: '0xDeBF20617708857ebe4F679508E7b7863a8A8EeE',
796
795
  token_address: '0xFd2a8fA60Abd58Efe3EeE34dd494cD491dC14900',
797
796
  gauge_address: '0xd662908ADA2Ea1916B3318327A97eB18aD588b5d',
798
- sCurveRewards_address: "0x99ac10631F69C753DDb595D074422a0922D9056B",
797
+ sCurveRewards_address: "0x96d7bc17912e4f320c4894194564cf8425cfe8d9",
799
798
  is_lending: true,
800
799
  underlying_coins: ['DAI', 'USDC', 'USDT'],
801
800
  wrapped_coins: ['aDAI', 'aUSDC', 'aUSDT'],
@@ -840,7 +839,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
840
839
  wrapped_decimals: [18, 18],
841
840
  swap_abi: swap_json_26.default,
842
841
  gauge_abi: gauge_v2_json_1.default,
843
- sCurveRewards_abi: sCurveRewards_json_11.default,
842
+ sCurveRewards_abi: sCurveRewards_json_10.default,
844
843
  },
845
844
  saave: {
846
845
  name: "saave",
@@ -893,7 +892,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
893
892
  wrapped_decimals: [18, 18],
894
893
  swap_abi: swap_json_28.default,
895
894
  gauge_abi: gauge_v2_json_1.default,
896
- sCurveRewards_abi: sCurveRewards_json_12.default,
895
+ sCurveRewards_abi: sCurveRewards_json_11.default,
897
896
  },
898
897
  usdp: {
899
898
  name: "usdp",
@@ -1273,6 +1272,7 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
1273
1272
  token_address: '0x3D229E1B4faab62F621eF2F6A610961f7BD7b23B',
1274
1273
  gauge_address: '0x65CA7Dc5CB661fC58De57B1E1aF404649a27AD35',
1275
1274
  is_crypto: true,
1275
+ is_plain: true,
1276
1276
  underlying_coins: ['USDC', 'EURS'],
1277
1277
  wrapped_coins: ['USDC', 'EURS'],
1278
1278
  underlying_coin_addresses: [
@@ -126,3 +126,12 @@ export interface IRoute {
126
126
  outputUsd: number;
127
127
  txCostUsd: number;
128
128
  }
129
+ export interface IProfit {
130
+ day: string;
131
+ week: string;
132
+ month: string;
133
+ year: string;
134
+ token: string;
135
+ symbol: string;
136
+ price: number;
137
+ }
@@ -1,5 +1,5 @@
1
1
  import memoize from "memoizee";
2
- import { IDict, IReward } from '../interfaces';
2
+ import { IDict, IReward, IProfit } from '../interfaces';
3
3
  export declare class PoolTemplate {
4
4
  id: string;
5
5
  name: string;
@@ -120,9 +120,13 @@ export declare class PoolTemplate {
120
120
  stake(lpTokenAmount: number | string): Promise<string>;
121
121
  private unstakeEstimateGas;
122
122
  unstake(lpTokenAmount: number | string): Promise<string>;
123
+ crvProfit: (address?: string) => Promise<IProfit>;
123
124
  claimableCrv(address?: string): Promise<string>;
124
125
  claimCrvEstimateGas(): Promise<number>;
125
126
  claimCrv(): Promise<string>;
127
+ boost: (address?: string) => Promise<string>;
128
+ currentCrvApy: (address?: string) => Promise<string>;
129
+ maxBoostedStake: (...addresses: string[]) => Promise<IDict<string> | string>;
126
130
  rewardTokens: (() => Promise<{
127
131
  token: string;
128
132
  symbol: string;
@@ -132,6 +136,7 @@ export declare class PoolTemplate {
132
136
  symbol: string;
133
137
  decimals: number;
134
138
  }[]>>;
139
+ rewardsProfit: (address?: string) => Promise<IProfit[]>;
135
140
  claimableRewards(address?: string): Promise<{
136
141
  token: string;
137
142
  symbol: string;
@@ -192,6 +197,24 @@ export declare class PoolTemplate {
192
197
  private walletUnderlyingCoinBalances;
193
198
  private walletWrappedCoinBalances;
194
199
  private walletAllCoinBalances;
200
+ private _userLpTotalBalance;
201
+ userBalances(address?: string): Promise<string[]>;
202
+ userWrappedBalances(address?: string): Promise<string[]>;
203
+ userLiquidityUSD(address?: string): Promise<string>;
204
+ baseProfit(address?: string): Promise<{
205
+ day: string;
206
+ week: string;
207
+ month: string;
208
+ year: string;
209
+ }>;
210
+ userShare(address?: string): Promise<{
211
+ lpUser: string;
212
+ lpTotal: string;
213
+ lpShare: string;
214
+ gaugeUser?: string;
215
+ gaugeTotal?: string;
216
+ gaugeShare?: string;
217
+ }>;
195
218
  private _swapExpected;
196
219
  swapExpected(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<string>;
197
220
  swapPriceImpact(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<string>;
@@ -209,14 +232,10 @@ export declare class PoolTemplate {
209
232
  swapWrappedApprove(inputCoin: string | number, amount: number | string): Promise<string[]>;
210
233
  private swapWrappedEstimateGas;
211
234
  swapWrapped(inputCoin: string | number, outputCoin: string | number, amount: number | string, slippage?: number): Promise<string>;
212
- gaugeMaxBoostedDeposit: (...addresses: string[]) => Promise<IDict<string>>;
213
235
  gaugeOptimalDeposits: (...accounts: string[]) => Promise<IDict<string>>;
214
- boost: (address: string) => Promise<string>;
215
236
  private _getCoinIdx;
216
237
  private _getRates;
217
238
  private _balances;
218
239
  private _underlyingPrices;
219
240
  private _wrappedPrices;
220
- private _withdrawCryptoBonus;
221
- private _withdrawBonus;
222
241
  }