fn unrestricted_phase<'info>(ctx: &Context<ExchangeUsdcForRedeemable<'info>>) -> Result<()> {
    if !(ctx.accounts.pool_account.start_ido_ts < ctx.accounts.clock.unix_timestamp) {
        return Err(ErrorCode::StartIdoTime.into());
    }
    Ok(())
}
// Asserts the IDO is in the first phase.
Asserts the IDO is in the first phase.
Asserts the IDO is in the first phase .
fn unrestricted_phase<'info>(ctx: &Context<ExchangeUsdcForRedeemable<'info>>) -> Result<()> {
    if !(ctx.accounts.pool_account.start_ido_ts < ctx.accounts.clock.unix_timestamp) {
        return Err(ErrorCode::StartIdoTime.into());
    }
    Ok(())
}
fn unrestricted_phase < ' info > ( ctx : & Context < ExchangeUsdcForRedeemable < ' info > > ) -> Result < ( ) > { if ! ( ctx . accounts . pool_account . start_ido_ts < ctx . accounts . clock . unix_timestamp ) { return Err ( ErrorCode :: StartIdoTime . into ( ) ) ; } Ok ( ( ) ) }
Asserts the IDO is in the first phase.
Asserts the IDO is in the first phase .
ctx
&Context<ExchangeUsdcForRedeemable<'info>>
ctx
&Context<ExchangeUsdcForRedeemable<'info>>