Ionic liquids with dual pesticidal function