When in an action on contract, express or implied, the defendant alleges in the answer that before the commencement of the action the defendant tendered to the plaintiff the full amount to which the plaintiff was entitled, and thereupon deposits in court for the plaintiff the amount so tendered, and the allegation is found true, the defendant shall be entitled to costs and disbursements.
Minn. Stat. § 549.13
(9481) RL s 4348; 1986 c 444