Any person holding the office of state treasurer or any person employed in the department of the treasury who, directly or indirectly, accepts or receives from any person, for himself or herself or otherwise than on behalf of the state, any fee, reward, or compensation, either in money or other property or thing of value, in consideration of the deposit or investment of state moneys with any such person or in consideration of any agreement or arrangement touching upon the use of state moneys commits a class 6 felony and shall be punished as provided in section 18-1.3-401, C.R.S.