function _transferWithReward(ElcoinDb _db, address _from, address _to, uint _value) internal returns (bool) {
        if (!_transfer(_db, _from, _to, _value)) {
            Error(2, tx.origin, msg.sender);
            return false;
        }

        address pos = getAddress("elcoinPoS");
        address pot = getAddress("elcoinPoT");
        if (pos != 0x0) {
            PosRewards(pos).transfer(_from, _to);
        }
        if (pot != 0x0) {
            PotRewards(pot).transfer(_from, _to, _value);
        }
        return true;
    }