If it's totally covered by the deposit coming up the chain then just that. If there is additional monies required to 'top up' then these are supplied by you.
sell 500k house = £50k
buy 1,000,000 = £100k
In this scenario you would need to supply £50k ahead of exchange to your solicitor