When in any action or suit for the recovery of money or damages only, the defendant shall allege in answer that before the commencement thereof the defendant tendered to the plaintiff a certain amount of money in full payment or satisfaction of the cause, and now brings the same into court and deposits it with the clerk for the plaintiff, if such allegation of tender is found true, and the plaintiff does not recover a greater sum than the amount so tendered, the plaintiff shall not recover costs from the defendant, but the defendant shall recover costs from the plaintiff.
ORS 20.180