Leasing and purse money

If a horse is up for lease or for sale(and been there for awhile), and the owner enters that horse in a race and before the race is ran, the horse is leased or sold, who gets the purse money? Also, if it is after entries close and therefor you can’t scratch without losing the entry fee.

Original owner or the new owner?

Whoever is the official owner/leaser on the day that the race runs get the purse money.  If you don’t want to lose your entry fee if the horse sells, either bump the sales price up to include the fee, or don’t enter your horse/take him off the sales listing until he races.

That is what I thought but was not sure.  Thanks a bunch!!