An ionic solid is a repeating grid of ions. Pick the two ions, then pull the grid apart and watch the energy fall. Charge and distance are the only two dials that matter.
Ions of opposite charge alternate in every row and column.
The curve is the same ΔHlattice ∝ Q1Q2/r rule. Double the distance and you halve the energy.
The model and the measured value agree to 0 percent.