28-2-1716. Power of court to require party rescinding to do equity. On adjudging the rescission of a contract, the court may require the party to whom such relief is granted to make any compensation or restoration to the other which justice may require.