HydroProtocol / hydro-scaffold-dex

A Decentralized Exchange Scaffold - launch a DEX in minutes
Apache License 2.0
196 stars 189 forks source link

Weth disabled on UI #49

Closed halflifecode closed 5 years ago

halflifecode commented 5 years ago

I have created a NUKER-WETH market, and I have approved it. Nuke is approved in my wallet in the UI, but WETH isn't. Why is this?

https://imgur.com/a/z2mKYlg

davidqhr commented 5 years ago

The admin cli approval is for the relayer address, not the one you are using in browser. I guess the relayer address and the one in browser is not the same address, right? As a user, you have to approve WETH independently before buying.