The conditions for the discharge of an accused as a state witness are as follows:
- There is absolute necessity for the testimony of the accused whose discharge is requested;
- There is no other direct evidence available for the proper prosecution of the offense committed, except the testimony of said accused;
- The testimony of said accused can be substantially corroborated in its material points;
- Said accused does not appear to be the most guilty; and
- Said accused has not at any time been convicted of any offense involving moral turpitude. (People v. Estacio, G.R. No. 171655, July 22, 2009)