modified getnfactor for ybcoin