The user will have the chance to select his account via a dropdown menu
View 1
Left List/Picker indicates the token the user wants to sell
Right List/Picker indicates the token the user wants to buy.
The text will change dynamically according what the user has picked.
With the inputfield the user needs to specify his amount to buy.
Button continue will show View 2
View 2
Frontend will get the best offer from the contract and display it.
Button cancel will show View 1
Button proceed will show View 3
View 3 (User accepted offer)
Button cancel will show View 1
Button wrap triggers a metamask window where the user needs to confirm the wrap-transaction. After the transaction got confirmed, the Frontend will show View 4
View 4 (User confirms trade)
Users sees the final order informations.
Button cancel will show View 1
Button buy triggers a metamask window where the user needs to confirm the buy-transaction. After the transaction got confirmed, the Frontend will show View 5
View 5 (Trade status)
Button Etherscanwill create a new tab and display the transaction page.
Button Refreshis refreshing the UI for confirmations.
Definition
W-ETH/MKR
SAI/MKR
W-ETH/SAI
View 1
continue
will showView 2
View 2
cancel
will showView 1
proceed
will showView 3
View 3 (User accepted offer)
cancel
will showView 1
wrap
triggers a metamask window where the user needs to confirm the wrap-transaction. After the transaction got confirmed, the Frontend will showView 4
View 4 (User confirms trade)
cancel
will showView 1
buy
triggers a metamask window where the user needs to confirm the buy-transaction. After the transaction got confirmed, the Frontend will showView 5
View 5 (Trade status)
Etherscan
will create a new tab and display the transaction page.Refresh
is refreshing the UI for confirmations.