pub fn lockup_from<T: ReadableAccount + StateMut<StakeState>>(
account: &T
) -> Option<Lockup>