Potentials associated to rational weights