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