You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the new component.
The blue words just open up the how_to page for now.
The buttons open up a modal that looks like the create contract modal.
So they will have to choose a duration, an asset, a start date and then enter an amount to buy.
When submitted, they will run the exchange function:
buyPerUnit(address _asset, uint256 _amount)
(asset being the token address of the token).
The difficult part of this is populating the drop downs correctly.
****NOTE, we're adding getters. So wait for that before you start this
So you will run these functions:
exchange.getLongTokens()
exchange.getShortTokens()
to get an array of addresses and amounts. If the amount is > 0, then allow it to populate the dropdown.
Next to the 'Amount' field, also put the max amount that they can buy.
Add a component for the ddaList functionality (just us)
The text was updated successfully, but these errors were encountered: