Skip to content

Commit

Permalink
Fix web app compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Oct 24, 2023
1 parent f7c0b8f commit 729dffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/composables/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function useStaking() {
}
}

async function withdraw({ amount, walletProvider }: { amount: string, walletProvider: ProviderString }) {
async function withdraw({ amount, walletProvider, type }: { amount: string, walletProvider: ProviderString, type: 'default' | 'eigen' }) {
let signer
if (ethersProviderList.includes(walletProvider)) {
signer = getEthersBrowserSigner(walletProvider)
Expand All @@ -101,6 +101,7 @@ export default function useStaking() {
} else {
throw new Error(`Invalid wallet provider: ${walletProvider}`)
}
const manager = type === 'default' ? defaultManager : eigenManager
const managerSigner = (manager as CasimirManager).connect(signer as ethers.Signer)
const value = ethers.utils.parseEther(amount)
// const withdrawableBalance = await (manager as CasimirManager).getWithdrawableBalance()
Expand Down

0 comments on commit 729dffb

Please sign in to comment.