drips-network / app

💧 Funding that flows — Drips Frontend
https://drips.network
GNU General Public License v3.0
33 stars 19 forks source link

Automatic wrapping of native tokens up top-up / one-time donation #1189

Open efstajas opened 3 months ago

efstajas commented 3 months ago

Related to #1180, which is about automatically unwrapping wrapped native tokens on collect.

Currently, wrapped tokens like WETH or WFIL are just part of our default token list, and can be topped up & collected in their wrapped states.

It'd be great if the app could automatically wrap native tokens (e.g. ETH) upon top-up or one-time donation, so that funders don't need to externally wrap their native tokens before being able to use them with Drips.

We should explicitly define a list of native tokens that support this auto wrap / unwrap functionality in the app. For the beginning, it should support ETH/WETH on mainnet and FIL/WFIL on Filecoin.

UX outline for topping up / one-time donating supported native tokens

brandonhaslegs commented 2 months ago

Here are a few of the places where this would appear formatted like this: image image image image


I wonder if we should also put some sort of indicator that this is a auto-wrapped token. Because it might be a bit confusing to show the unwrapped name and the wrapped token symbol.

image
brandonhaslegs commented 2 months ago

Design file https://www.figma.com/design/vyI7f996JF8zwhnXwAwXdC/%F0%9F%92%A7-Drips?node-id=10938-24922&t=ZK2c4F2Z38cN8IVg-1

brandonhaslegs commented 2 months ago

Here's a new design for when we wrap a token

image