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.
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.