pub fn pool_update(
    ctx: Context<'_, '_, '_, '_, PoolUpdate<'_>>,
    settings: PoolSettings
) -> Result<()>