Skip to content

Commit

Permalink
build: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Jan 17, 2024
1 parent 6410bf8 commit 2ff6c16
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yearn-finance/web-lib",
"version": "3.0.125",
"version": "3.0.126",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand All @@ -25,7 +25,7 @@
"export": "tsc && next build && next export -o ipfs"
},
"dependencies": {
"@builtbymom/web3": "^0.0.13",
"@builtbymom/web3": "^0.0.15",
"@headlessui/react": "^1.7.18",
"@rainbow-me/rainbowkit": "^1.3.0",
"@react-hookz/web": "^24.0.2",
Expand Down
7 changes: 4 additions & 3 deletions src/contexts/useYearn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const YearnContext = createContext<TYearnContext>({
});

export const YearnContextApp = memo(function YearnContextApp({children}: {children: ReactElement}): ReactElement {
const {refresh} = useWallet();
const {onRefresh} = useWallet();
const {value: maxLoss, set: set_maxLoss} = useLocalStorageValue<bigint>('yearn.fi/max-loss', {
defaultValue: DEFAULT_MAX_LOSS,
parse: (str: string, fallback: bigint): bigint => (str ? deserialize(str) : fallback),
Expand Down Expand Up @@ -104,8 +104,9 @@ export const YearnContextApp = memo(function YearnContextApp({children}: {childr
}
}
}
refresh(tokensToRefresh);
}, [tokens, refresh]);

onRefresh(tokensToRefresh);
}, [tokens, onRefresh]);

return (
<YearnContext.Provider
Expand Down
54 changes: 54 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,28 @@
wagmi "^1.4.7"
zod "^3.22.4"

"@builtbymom/web3@^0.0.15":
version "0.0.15"
resolved "https://registry.yarnpkg.com/@builtbymom/web3/-/web3-0.0.15.tgz#d9148d0fad83029377876866aaaceb235a42754d"
integrity sha512-y9j4Yff/M8N7iTuUAKyJlRL+jpPvslp2wzaDXEGm3uvv21lHsw9jwTzbgAvu0nG1W/Wjk0ea0So44m+TKzibNA==
dependencies:
"@rainbow-me/rainbowkit" "^1.3.0"
"@react-hookz/web" "^24.0.2"
"@total-typescript/ts-reset" "^0.5.1"
"@wagmi/chains" "1.8.0"
"@wagmi/core" "^1.4.7"
bun-types "^1.0.22"
ethers "5.7.2"
eventemitter3 "^5.0.1"
lint-staged "^15.2.0"
next "^14.0.4"
prettier "2.8.8"
react-hot-toast "2.4.1"
swr "^2.2.4"
viem "^1.19.9"
wagmi "^1.4.7"
zod "^3.22.4"

"@coinbase/wallet-sdk@^3.6.6":
version "3.7.2"
resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-3.7.2.tgz#7a89bd9e3a06a1f26d4480d8642af33fb0c7e3aa"
Expand Down Expand Up @@ -2845,6 +2867,38 @@
"@walletconnect/window-getters" "^1.0.1"
tslib "1.14.1"

"@yearn-finance/web-lib@^3.0.125":
version "3.0.125"
resolved "https://registry.yarnpkg.com/@yearn-finance/web-lib/-/web-lib-3.0.125.tgz#f2992c9fcdf270f0d5fa125fcd68ee6dbbad92c5"
integrity sha512-BDS7/g4INexYSBa6CMay/7meV/iDpd8yy14w5o8/FEIKlSK3/89SzLQl6l1d4ElPU+kOBZcwCycCj6DnCXbsZQ==
dependencies:
"@builtbymom/web3" "^0.0.13"
"@headlessui/react" "^1.7.18"
"@rainbow-me/rainbowkit" "^1.3.0"
"@react-hookz/web" "^24.0.2"
"@tailwindcss/forms" "^0.5.7"
"@total-typescript/ts-reset" "^0.5.1"
"@wagmi/chains" "1.8.0"
"@wagmi/core" "^1.4.7"
bun-types "^1.0.22"
dayjs "^1.11.10"
ethers "5.7.2"
eventemitter3 "^5.0.1"
graphql "^16.8.1"
lint-staged "^15.2.0"
next "^14.0.4"
next-seo "^6.4.0"
prettier "2.8.8"
react-hot-toast "2.4.1"
react-paginate "^8.2.0"
sass "^1.69.7"
stylelint "^16.1.0"
swr "^2.2.4"
tailwindcss "^3.4.1"
viem "^1.19.9"
wagmi "^1.4.7"
zod "^3.22.4"

JSONStream@^1.3.5:
version "1.3.5"
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"
Expand Down

0 comments on commit 2ff6c16

Please sign in to comment.