0xProject / 0x-launch-kit-frontend

Apache License 2.0
114 stars 208 forks source link

Use modal when wrapping/unwrapping eth #182

Closed fvictorio closed 5 years ago

fvictorio commented 5 years ago

Closes #158.

Similar to #171, but for wrapping/unwrapping ether.

The step now has the information on the current balance and the new balance. This is necessary to know if the user is converting ETH to wETH or if it's the other way around.

The buildMessage function is complex because the message depends on the "direction" of the conversion, and because there is a "for trading" part that's only shown when the conversion is part of building an order.

fvictorio commented 5 years ago

Yes, I forgot to clarify that. Since that linter error is solved in another PR, I didn't fix it to avoid unnecessary conflicts.