Distributions of cash or other assets of a limited partnership shall be allocated among the partners, and among classes of partners, in the manner provided in writing in the partnership agreement. If the partnership agreement does not so provide in writing, distributions shall be made on the basis of the value, as stated in the partnership records required to be kept pursuant to § 48-7-105, of the contributions made by each partner to the extent they have been received by the partnership and have not been returned.
SDCL 48-7-504