## IPFS/ Subgraph
- Make sure how we update the ENS hash.
- Gov alpha will update it ? / Automation?
- Automation: Maybe overkill, we might not need many updates
- At the beginning manually.
- Ask govalpha, make sure they can use the multisig to update
- Merging the CAR file formatting from tyler:
- Polish last things before moving on
- Talk with govalpha, add the new environment variables to the repos and publish the new version of the github action.
## Datasources trust level
- Connect the trust level to the user settings
- Figure out how to handle levels :
- How do we hide / show components?
- How do we determine what components to show?
- Offer alternative ways to interact with functionalities of the app if the trust level hides info:
- For example: if you don't allow for data from the subgraph, offer a little component to input a delegate address and interact with that delegate.
- Check with Tiago:
- Data source indicator UI / UX
## Vaults 😎💰
- Prerequisites:
- Add the goerli addresses, and make sure it works there. (it might be done)
- DS Proxy: you can create from account
- Components
- CollateralTypeList
- CollateralTypeListItem
- manage / open (NOT DONE)
- check if the user has a vault for this collateral type
- ? we need a hook or something that returns a vault for a collateral type
- check userVaultsIds(address) state to find the right one :heavy_check_mark:
- if it doesnt exist
- call useCreateVault
- if it exist
- navigate to vault/id
- Upgrade:
- Make "open vault modal" , allows you to input the amount to lock, shows a button to create vault.
- Choose collateral amount
- Choos DAI to mint
- Click "open and generate"
- Vault detail: (3rd) page + component
- Display vault info
- Debt
- Collateral
- Add buttons to "borrow" , "repay" , "deposit", "withdraw" (2nd)
- hooks for all of the 4 actions (1st)
- Hooks
- useOpenVault
- Called via proxy action
- open(ilk , usr )
- Concatenate actions
- Simple:
- useOpenVault
- useOpenLockVault
- useOpenLockDraw
- Another
- useopenVault({
actions: ['lock', 'draw']
})
- useCollateralTypes
- useVault(vaultId) - Read hook
// Borrow DAI , repay DAI, lock Collateral, Free Collateral
- const { execute , isLoading, error } = useVaultBorrow(vaultId)
- const { execute , isLoading, error } = useVaultRepay(vaultId)
-
- useVaults(userAddress)
- URLs
- `vaults` - List of collateral types. If a user has a vault, we show "manage", if not we show "open".
- `vaults/:vaultId/` -shows a specific vault
- `vaults/:ownerAddress/` - shows all owners vaults
- `account/:address` - will show a users-vaults components
- Resources:
- [Proxy Actions](https://github.com/makerdao/dss-proxy-actions#dssproxyactions)
- [ERC-4626 Vault Standard](https://ethereum.org/en/developers/docs/standards/tokens/erc-4626/)
💰💰💰💰💰💰💰💰💰💰💰💰