From what I've understood you get the highest spell slot level you have access to to unlock known spells. Currently in 5e you can end up having higher spell slot levels than known spells (combining half casters with casters for an example, since spell slots are calculated based on a mixed progression). But I could be wrong.