From 4565a2e793eb6be948f507a5596ebf45aa85d46a Mon Sep 17 00:00:00 2001 From: Christopher Cali Date: Thu, 6 Apr 2023 17:33:25 -0400 Subject: [PATCH 01/34] Connect v1 smart contract interface with auth flow --- apps/web/src/composables/wallet.ts | 2 ++ apps/web/src/pages/dashboard/components/Stake.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/composables/wallet.ts b/apps/web/src/composables/wallet.ts index 7cbeb9cd7..8f8250327 100644 --- a/apps/web/src/composables/wallet.ts +++ b/apps/web/src/composables/wallet.ts @@ -8,6 +8,7 @@ import useUsers from '@/composables/users' import { Account, ProviderString, Currency } from '@casimir/types' import { MessageInit, TransactionInit } from '@/interfaces/index' import * as Session from 'supertokens-web-js/recipe/session' +import router from './router' // Test ethereum send to address : 0xD4e5faa8aD7d499Aa03BDDE2a3116E66bc8F8203 // Test ethereum send to address : 0xd557a5745d4560B24D36A68b52351ffF9c86A212 @@ -94,6 +95,7 @@ export default function useWallet() { primaryAddress.value = user?.address } loadingUserWallets.value = false + router.push('/') } else { // Add account console.log('already logged in') console.log('checking if account exists on user') diff --git a/apps/web/src/pages/dashboard/components/Stake.vue b/apps/web/src/pages/dashboard/components/Stake.vue index 762b76d34..c10d8c3e6 100644 --- a/apps/web/src/pages/dashboard/components/Stake.vue +++ b/apps/web/src/pages/dashboard/components/Stake.vue @@ -265,7 +265,7 @@ onMounted(async ()=>{
- Select a wallet to stake from -
- Stake ETH to SSV Validators -
+
- {{ stakeAmount }} ETH -
- Fees -
+ Select a wallet to stake from +
- From -
+ Sign transaction to stake +
+ {{ stakeAmount }} ETH +
- Auto Stake -
+ {{ fees }} +
+ From +
+ Auto Stake +
- Amount -
- {{ fees }} -