It's quite possible I'm just not understanding the logic here, so please correct me if I'm wrong or overlooking the obvious. I can't make sense of the following math in the template:
If you send 1 NEO in the template, shouldn't exchanged_tokens be set to 4,000,000,000 (i.e. 40.00000000 tokens)? The fact that the statement divides by 100000000 means that exchanged_tokens will ultimately be equal to just 40, which doesn't seem right since the intent is to track 8 decimal places of precision on the token.
It's quite possible I'm just not understanding the logic here, so please correct me if I'm wrong or overlooking the obvious. I can't make sense of the following math in the template:
If you send 1 NEO in the template, shouldn't
exchanged_tokens
be set to 4,000,000,000 (i.e.40.00000000
tokens)? The fact that the statement divides by100000000
means thatexchanged_tokens
will ultimately be equal to just 40, which doesn't seem right since the intent is to track 8 decimal places of precision on the token.