Agoric / dapp-inter

User application for Agoric Inter Protocol—Vaults, BLD Boost, Liquidations, etc.
2 stars 10 forks source link

As Vaults user creating a new vault, I should be able to get as far as possible in the flow before having to connect my smart wallet (and Keplr wallet?) #9

Closed otoole-brendan closed 1 year ago

otoole-brendan commented 1 year ago

What is the Problem Being Solved?

Given previous feedback on PSM, we need to allow users to progress as far as possible in the flow before prompting them to connect their wallet

Description of the Design

Security Considerations

Unknown

Test Plan

Smoke Test after implementation

dckc commented 1 year ago

Here's hoping we can refine the title to replace "as far as possible" with the actual point(s) in the flow.

This point is likely the vault configuration screen

Why do they need a keplr wallet to configure a vault?

Keplr shouldn't be needed until they want to sign something, right? Oh... we need to know their address to get their balances at this point?

Aside: grumble: Keplr doesn't separate read-only access to an account from full control. Other wallets let you watch accounts, and would let you connect to provide an address without providing signing capability.

samsiegart commented 1 year ago

Oh... we need to know their address to get their balances at this point?

Yea we need to display purses and balances and provide input validation for them to enter amounts. Also we need to know {chainId, address} when we write the offer to local storage so that wallet.agoric.app/wallet/ knows which account it's for.

dckc commented 1 year ago

Writing the offer to localStorage happens after they fill out the configuration screen, right? That's pretty much what I meant by "when they want to sign something". But it sounds like we need it to get balances to guide input.

dckc commented 1 year ago

@otoole-brendan to my mind, the user story here is "configure a vault", and the how far you can get without needing keplr should be a subordinate detail (an acceptance criterion).

I also suggest that putting "As a Vaults user creating a new vault" in the title makes a lot of things hard to read, so it should only appear in the description. OTOH, I suggested that to @rowgraus quite some time ago, but he wasn't convinced.

otoole-brendan commented 1 year ago

Sam confirmed done