Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDAList component #122

Open
themandalore opened this issue Jul 17, 2018 · 1 comment
Open

DDAList component #122

themandalore opened this issue Jul 17, 2018 · 1 comment

Comments

@themandalore
Copy link
Contributor

Add a component for the ddaList functionality (just us)

@themandalore
Copy link
Contributor Author

testddalist

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.

@SamuelLJackson SamuelLJackson self-assigned this Sep 2, 2018
@SamuelLJackson SamuelLJackson removed their assignment Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants