When you trade stock indices, we will send your trading order to the market-making banks. Normally, the market-making bank will purchase the stocks in the underlying asset list corresponding to the stock index according to their weights.
When some stocks are ex-dividend, the price of the stock indices will also move slightly. We usually put this movement into the swap to offset this fluctuation, rather than execute a dividend.