Skip to content

Commit

Permalink
build: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Jul 11, 2024
1 parent 078d2fe commit d809e9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yearn-finance/web-lib",
"version": "4.0.5",
"version": "4.0.6",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand Down
6 changes: 6 additions & 0 deletions src/hooks/useFetchYearnVaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ function useFetchYearnVaults(chainIDs?: number[] | undefined): {
});

const vaultsObject = useDeepCompareMemo((): TDict<TYDaemonVault> => {
if (!vaults) {
return {};
}
const _vaultsObject = (vaults || []).reduce((acc: TDict<TYDaemonVault>, vault): TDict<TYDaemonVault> => {
if (!vault.migration.available) {
acc[toAddress(vault.address)] = vault;
Expand All @@ -68,6 +71,9 @@ function useFetchYearnVaults(chainIDs?: number[] | undefined): {
}, [vaults]);

const vaultsMigrationsObject = useDeepCompareMemo((): TDict<TYDaemonVault> => {
if (!vaultsMigrations) {
return {};
}
const _migratableVaultsObject = (vaultsMigrations || []).reduce(
(acc: TDict<TYDaemonVault>, vault): TDict<TYDaemonVault> => {
if (toAddress(vault.address) !== toAddress(vault.migration.address)) {
Expand Down

0 comments on commit d809e9b

Please sign in to comment.