@ichidao/ichi-vaults-sdk 0.1.38 → 0.1.39

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
@@ -564,7 +564,6 @@ const amountsBN: [BigNumber, BigNumber] & {amount0: BigNumber, amount1: BigNumbe
564
564
  | dex | SupportedDex | - | true
565
565
  | raw | true | undefined | false |
566
566
 
567
- <br/>
568
567
  This function returns user balances (as [UserBalanceInVault](#userbalanceinvault) or [UserBalanceInVaultBN](#userbalanceinvaultbn)) for all vaults on the specified decentralized exchange (DEX). The result is cached for 2 minutes by default. You can set your own cache TTL by adding the CACHE_TTL environment variable in millisecond. For example, CACHE_TTL = 60000 is 1 minute.
569
568
 
570
569
  ```typescript
@@ -600,7 +599,6 @@ const userBalancesInVaultsBN: UserBalanceInVaultBN[] = await getAllUserBalances(
600
599
  | dex | SupportedDex | - | true
601
600
  | raw | true | undefined | false |
602
601
 
603
- <br/>
604
602
  This function returns user token amounts (as [UserAmountsInVault](#useramountsinvault) or [UserAmountsInVaultBN](#useramountsinvaultbn)) in all vaults on the specified decentralized exchange (DEX). The result is cached for 2 minutes by default. You can set your own cache TTL by adding the CACHE_TTL environment variable in millisecond. For example, CACHE_TTL = 60000 is 1 minute.
605
603
 
606
604
  ```typescript
@@ -779,7 +777,6 @@ const amountsBN: [BigNumber, BigNumber] & {total0: BigNumber, total1: BigNumber}
779
777
 
780
778
  The getFeesCollectedInfo() function returns an array of [FeesInfo](#feesinfo) objects representing the number of fees collected for the periods of time specified by the 'forDays' parameter, along with the fee Annual Percentage Rate (APR) for those periods.
781
779
  If 'forDays' is not specified, it returns [FeesInfo](#feesinfo) for time periods of 1, 7, and 30 days.
782
- <br/>
783
780
 
784
781
  ```typescript
785
782
  import { Web3Provider } from '@ethersproject/providers';
@@ -814,7 +811,6 @@ const feesInfo: FeesInfo[] = await getFeesCollectedInfo(
814
811
  | jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
815
812
  | dex | SupportedDex | - | true
816
813
 
817
- <br/>
818
814
  The getFeeAprs() function calculates and returns fee Annual Percentage Rates (APRs) for the specified vault over different standard time periods. It returns an object of type [FeeAprData](#feeaprdata) containing APR values for 1 day, 3 days, 7 days, and 30 days.
819
815
 
820
816
  ```typescript
@@ -838,7 +834,6 @@ console.log(`1-day Fee APR: ${feeAprs.feeApr_1d}%`);
838
834
  | dex | SupportedDex | - | true
839
835
  | timeIntervals | number[] | [1, 7, 30] | false |
840
836
 
841
- <br/>
842
837
  The getAverageDepositTokenRatios() function returns an array of [AverageDepositTokenRatio](#averagedeposittokenratio) objects representing the average deposit token ratio for the periods of time specified by the 'timeIntervals' parameter.
843
838
  If 'timeIntervals' is not specified, it returns [AverageDepositTokenRatio](#averagedeposittokenratio) objects for time periods of 1, 7, and 30 days.
844
839
 
@@ -917,8 +912,7 @@ const vaultMetrics: VaultMetrics[] = await getVaultMetrics(
917
912
  | vaultAddress | string | - | true |
918
913
  | jsonProvider | JsonRpcProvider | - | false |
919
914
 
920
- <br/>
921
- This function returns [IchiVault](#ichivault) object.
915
+ This function returns an [IchiVault](#ichivault) object.
922
916
 
923
917
  ```typescript
924
918
  import { Web3Provider } from '@ethersproject/providers';
@@ -943,7 +937,6 @@ if (vaultInfo) {
943
937
  | depositTokenAddress | string | - | true |
944
938
  | pairedTokenAddress | string | - | true |
945
939
 
946
- <br/>
947
940
  This function returns an array of all vaults ([IchiVault](#ichivault)[]) on the specified DEX that contain two tokens defined by the 'depositTokenAddress' and 'pairedTokenAddress' parameters.
948
941
 
949
942
  ```typescript
@@ -999,7 +992,6 @@ if (vaults.length === 0) {
999
992
  | jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
1000
993
  | dex | SupportedDex | - | true
1001
994
 
1002
- <br/>
1003
995
  This function returns an object of type [VaultPositionsInfo](#vaultpositionsinfo).
1004
996
 
1005
997
  ```typescript
@@ -1060,7 +1052,6 @@ const chains: SupportedChainId[] = getChainsForDex(dex);
1060
1052
  | dex | SupportedDex | - | true |
1061
1053
  | vaultAddress | string | - | true |
1062
1054
 
1063
- <br/>
1064
1055
  This function returns [RewardInfo](#rewardinfo) about reward rates and farming contract for the specified vault. This function is specific for Velodrome vaults.
1065
1056
 
1066
1057
  ```typescript
@@ -1080,7 +1071,6 @@ const rewardInfo: RewardInfo = getRewardInfo(chainId, dex, vaultAddress);
1080
1071
  | chainId | SupportedChainId | - | true |
1081
1072
  | dex | SupportedDex | - | true |
1082
1073
 
1083
- <br/>
1084
1074
  This function returns an array of [RewardInfo](#rewardinfo) about reward rates and farming contracts for all vaults on the dex. This function is specific for Velodrome vaults.
1085
1075
 
1086
1076
  ```typescript
@@ -1101,7 +1091,6 @@ const allRewardInfo: RewardInfo[] = getAllRewardInfo(chainId, dex);
1101
1091
  | dex | SupportedDex | - | true |
1102
1092
  | raw | true | undefined | - | false |
1103
1093
 
1104
- <br/>
1105
1094
  This function returns user rewards (as [UserRewards](#userrewards)) for all vaults on the dex. This function is specific for Velodrome vaults.
1106
1095
 
1107
1096
  ```typescript
@@ -1124,7 +1113,6 @@ const rewards: UserRewards[] = await getAllUserRewards(account, provider, dex);
1124
1113
  | dex | SupportedDex | - | true |
1125
1114
  | raw | true | undefined | - | false |
1126
1115
 
1127
- <br/>
1128
1116
  This function returns claimable reward amounts (as [UserRewardsByToken](#userrewardsbytoken) or [UserRewardsByTokenBN](#userrewardsbytokenbn)) for the specified vault and user account. This function is specific for Velodrome vaults.
1129
1117
 
1130
1118
  ```typescript
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @license
4
4
  * author: ICHI DAO <core@ichi.org>
5
- * ichi-vaults-sdk.js v0.1.38
5
+ * ichi-vaults-sdk.js v0.1.39
6
6
  * Released under the MIT license.
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @license
4
4
  * author: ICHI DAO <core@ichi.org>
5
- * ichi-vaults-sdk.js v0.1.38
5
+ * ichi-vaults-sdk.js v0.1.39
6
6
  * Released under the MIT license.
7
7
  */
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichidao/ichi-vaults-sdk",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "The ICHI Vaults SDK",
5
5
  "main": "dist/src/index.cjs.js",
6
6
  "module": "dist/src/index.esm.js",