The function curatePool emits Curated event every time. It should emit this event only when the conditions are fulfilled.
Recommend putting this event inside the most inner if block.
