The Penning trap mass spectrometer JYFLTRAP was used to measure the atomic masses of radioactive nuclei with an uncertainty better than 10 keV. The atomic masses of the neutron-deficient nuclei around the N = Z line were measured to improve the understanding of the rp-process path and the SbSnTe cycle. Furthermore, the masses of the neutron-rich gallium (Z = 31) to palladium (Z = 46) nuclei have been measured. The physics impacts on the nuclear structure and the r-process paths are reviewed. A better understanding of the nuclear deformation is presented by studying the pairing energy around A = 100.