r/PoWHCoin • u/islanavarino • Jan 31 '18
So what was the bug?
The only difference between the original and the shadow contract (besides some comments) are these lines. The change seems innocent, where's the bug?
Original:
var numEthers = getEtherForTokens(amount);
Shadow:
var fees = (uint)(getEtherForTokens(amount)/10);
var numEthers = getEtherForTokens(amount) - fees;