The floating leg of a USD swap has present value
$$ PV = \sum_{i=1}^N \delta_i f_i p^d(t_i) $$
where the $\{t_i\}$ are the floating leg payment dates, $\delta_i$ is the accrual fraction between $t_{i-1}$ and $t_i$, $p^d(t)$ is the curve used for discounting, and $f_i$ are the forward rates determined from the LIBOR curve $p^l(t)$
$$ f_i = \frac{1}{\delta_i} \left(\frac{p^l(t_{i-1})} {p^l(t_i)} - 1 \right) $$
The day count convention for the floating leg of a USD swap is ACT/360, so it is clear that when computing the $\delta_i$ we should use the ACT/360 day count function,
$$ \delta_i = \textrm{Days}_{\rm ACT/360}(t_{i-1}, t_i) $$
But what day count convention should we use for discounting? If I also use ACT/360, then the year fraction from $t = 0$ to the final payment on a 10-year swap is
$$ \textrm{Days}_{\rm ACT/360} (0, 10y) \approx \frac{10\times 365}{360} \approx 10.139 $$
which has the counter-intuitive consequence that the price of a 10-year swap depends on values of the discount curve beyond the 10 year point, which is clearly nonsense.
So it seems as though we should use some other day count convention for discounting, e.g. ACT/ACT or ACT/365. But this breaks the property that
$$ \sum_{i=1}^n \delta_i = t_n $$
which also seems undesirable. Can anyone clear up my confusion?