somish/NexusMutual

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

Closed this issue · 2 comments

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.

here is the function, please have a look

Issue has been resolved.