A contract made in the state between borrower and lender, debtor and creditor, or mortgagor and mortgagee, on which the rate of interest is the legal rate of interest specified in AS 45.45.010 or less, by which one party agrees to pay the taxes on the debt, credit, or mortgage existing or entered into between the parties, is legal and valid and is not usurious.