Create a getter method for tokens that will be minted for a given amount
Closed this issue · 2 comments
nitika-goel commented
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 commented
here is the function, please have a look
nitika-goel commented
Issue has been resolved.