Closed burnsben closed 5 years ago
We only use the forwarder contract in the erc721 marketplace. Should we work on changing this?
Yes. The erc20 marketplace needs this for market buys. We were under the impression that this would be included in the MVP. We highlighted this in the blog post as one of the features.
Shouldn't need to convert or unlock.
There is a work in progress in this branch hotfix/add-fowarder-contract-to-market-buy
@burnsben we have a WIP branch that uses the forwarder and we found an edgy case. Let's assume the following:
5 ETH
+ 5 wETH
= 10 ETH + wETH
total balance.10 ETH
.10 ETH
and that the account doesn't have enough fundsIn this case, he/she would need to unwrap ETH in order to perform the action. We can insert the wrap eth step somewhere in the flow, but is not that a little bit odd?
Just in case, the anwser for the above was:
ETH
is enough to perform the buy, use the forwarder.ETH
is NOT enough, but ETH + wET
balance is, append the "wrap ether" step in the flow and use wETH
.This was also added to the PR #549 description.
This should generally default to using ETH with the forwarder contract. Shouldn't need to unlock wETH.