fn ido_over<'info>(
    pool_account: &Account<'info, PoolAccount>,
    clock: &Sysvar<'info, Clock>,
) -> Result<()> {
    if !(pool_account.withdraw_honey_ts < clock.unix_timestamp) {
        return Err(ErrorCode::IdoNotOver.into());
    }
    Ok(())
}
// Asserts the IDO sale period has ended, based on the current timestamp.
Asserts the IDO sale period has ended, based on the current timestamp.
Asserts the IDO sale period has ended based on the current timestamp .
fn ido_over<'info>(
    pool_account: &Account<'info, PoolAccount>,
    clock: &Sysvar<'info, Clock>,
) -> Result<()> {
    if !(pool_account.withdraw_honey_ts < clock.unix_timestamp) {
        return Err(ErrorCode::IdoNotOver.into());
    }
    Ok(())
}
fn ido_over < ' info > ( pool_account : & Account < ' info , PoolAccount > , clock : & Sysvar < ' info , Clock > , ) -> Result < ( ) > { if ! ( pool_account . withdraw_honey_ts < clock . unix_timestamp ) { return Err ( ErrorCode :: IdoNotOver . into ( ) ) ; } Ok ( ( ) ) }
Asserts the IDO sale period has ended, based on the current timestamp.
Asserts the IDO sale period has ended based on the current timestamp .
pool_account
&Account<'info, PoolAccount>
clock
&Sysvar<'info, Clock>
pool_account
&Account<'info, PoolAccount>
clock
&Sysvar<'info, Clock>