Skip to content

Commit

Permalink
⬆️staking: update protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
franm91 committed Sep 4, 2024
1 parent bfe4f8d commit 4e09c9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion hooks/useStakingPreviewer.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { isAddress, zeroAddress } from 'viem';
import { optimismSepolia } from 'wagmi/chains';
import { optimismSepolia, optimism } from 'wagmi/chains';

import { useWeb3 } from './useWeb3';
import { useStakingPreviewerAllClaimable, useStakingPreviewerStaking } from 'types/abi';
import sepoliaPreviewer from '@exactly/protocol/deployments/op-sepolia/StakingPreviewer.json' assert { type: 'json' };
import optimismPreviewer from '@exactly/protocol/deployments/optimism/StakingPreviewer.json' assert { type: 'json' };

export const usePreviewerStaking = (override?: number) => {
const { chain, walletAddress } = useWeb3();

const address = {
[optimism.id]: optimismPreviewer.address,
[optimismSepolia.id]: sepoliaPreviewer.address,
}[override ?? chain.id];

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.0",
"@exactly/lib": "exactly/lib#90a6d1121e3350bd2a77c474bd59bfe1b0b8dd1e",
"@exactly/protocol": "exactly/protocol#0890c2e27e00054e1643608eac413f8548ce1ded",
"@exactly/protocol": "exactly/protocol#7e606d6e80e67e557b3bbee2a264520f67755f14",
"@mui/icons-material": "^5.15.14",
"@mui/lab": "^5.0.0-alpha.169",
"@mui/material": "^5.15.14",
Expand Down

0 comments on commit 4e09c9a

Please sign in to comment.