I am trying to derive the log-linear version of the uncovered interest rate parity under complete asset markets.
I know that the UIP condition is given by
$$(1+i_t)=(1+i^*_t)\frac{S_{t+1}}{S_t}$$
I have seen in papers that the log-linear version is simply given by
$$\hat{i}_t-\hat{i}^*_t=\hat{S}_{t+1}-\hat{S}_t$$
but I cannot see how this is derived. According to me, the log-linear version should be
$$\frac{i}{1+i}\hat{i}_t-\frac{i^*}{1+i^*}=\hat{S}_{t+1}-\hat{S}_t$$
Could someone please write down all steps to obtain the log-linear version of the UIP?
Thank you very much