Biting Decimals:

The SpankChain team is committed to advancing blockchain technology, businesses, and relationships in any way that we can. Unfortunately, sometimes we make mistakes. When that happens, we rely on the support and diligence of our loving community to help us identify problems, solve them, and then learn from those experiences.

With the help of the SpankChain community, we discovered a bug in the withdrawal function. This led to some of you viewing your tokens as several million times less then your expected value. While frustrating, this turned out to be a fairly minor bug. 99% silly, 1% annoying. All funds/tokens are safe and have now been distributed!

The Mistake

The mistake is a unit conversion error. The auction contract treated SPANK as a unit of measurement equivalent to a large denomination (similar to a unit of measurement like ETH). However, the display property of the token contract treated SPANK as a unit of measurement equivalent to a small denomination (similar to a unit of measurement like WEI).

The Remedy

The fix is to keep the unit of measurement defined by the token contract (18 decimal places) and deploy a new token contract. This means for 1,000,000,000 total tokens, we have to mint 1,000,000,000 multiplied by 100,000,000,000,000,000 = 1,000,000,000,000,000,000,000,000,000 (10²⁷) tokens.

Preventing future errors

Maintaining vigilance in testing will always be a priority for the SpankChain team. More than anything, this experience has taught us that regardless of how minor, every potential bug must be accounted for. On occasions such as this when we miss something, we rely on the SpankChain community to catch the errors. With that being said, we would like to extend a huge thank you to our community for responding to this situation with such grace.

What’s Next

Now that the auction is complete we will begin building the SpankChain Cam Site. We will be releasing a continuous stream of content over the coming months keeping our community appraised on development updates, strategic alliances/partnerships, and of course, client announcements.

Connect with SpankChain

To learn more about SpankChain please visit our website, follow us on Twitter, and join our growing Discord community.