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

Create a getter method for tokens that will be minted for a given amount #64

Closed
nitika-goel opened this issue Dec 28, 2018 · 2 comments
Closed
Labels
resolved - pending closure Issues resolved but pending closure via issue reporter

Comments

@nitika-goel
Copy link
Contributor

nitika-goel commented Dec 28, 2018

Similar to selling of tokens where we have a method _getWei for getting the ETH amount when selling tokens, we need a method to get the number of tokens for a given number of ETh. THis function can be reused in function buyToken.

This is a UI requirement as we need to show the number of NXM tokens available for xxx ETH.

@nervehammer
Copy link
Contributor

here is the function, please have a look

@nervehammer nervehammer self-assigned this Jan 6, 2019
@nervehammer nervehammer added the resolved - pending closure Issues resolved but pending closure via issue reporter label Jan 6, 2019
@nitika-goel
Copy link
Contributor Author

Issue has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolved - pending closure Issues resolved but pending closure via issue reporter
Projects
None yet
Development

No branches or pull requests

2 participants