Comment by igorbarinov on 19/06/2020 at 20:09 UTC

5 upvotes, 1 direct replies (showing 1)

View submission: The Great Reddit Scaling Bake-Off

View parent comment

Community Points use 18 decimals currently. For example, see the Total Supply for Moons: https://rinkeby.etherscan.io/token/0xDF82c9014F127243CE1305DFE54151647d74B27A[1][2]

1: https://rinkeby.etherscan.io/token/0xDF82c9014F127243CE1305DFE54151647d74B27A

2: https://rinkeby.etherscan.io/token/0xDF82c9014F127243CE1305DFE54151647d74B27A

Unfortunately, it's not 18. It's 0 decimals in your example above. That's why small balances look like very big numbers.

When we bridging Moon to xDai we have 18 decimals on the xDai side for bridged tokens. Here is how it looks with 18 decimals https://blockscout.com/poa/xdai/tokens/0x1e16aa4Df73d29C029d94CeDa3e3114EC191E25A/token%5C_transfers[3][4]

3: https://blockscout.com/poa/xdai/tokens/0x1e16aa4Df73d29C029d94CeDa3e3114EC191E25A/token%5C_transfers

4: https://blockscout.com/poa/xdai/tokens/0x1e16aa4Df73d29C029d94CeDa3e3114EC191E25A/token_transfers

The demo can use its own token, as long as it operates the same way as Moons and Bricks.

cool, thanks

Replies

Comment by jarins at 19/06/2020 at 20:48 UTC

1 upvotes, 1 direct replies

Thanks for pointing that out. We'll add decimals[1] to the SubredditPoints contracts. I assume this is mainly a display issue?

1: https://eips.ethereum.org/EIPS/eip-20#decimals