pool txns according to input txn curve