This story originally appeared in The Daily Beast newsletter, Pay Dirt. Sign up for that newsletter: HERE.

Montana Senate candidate Matt Rosendale had a problem. A pair of high dollar donors,Tom Rastin and his wife, Karen Wright, kept giving Rosendale more than the $5,400 each individual can legally donate to a campaign per election cycle. And each time, twice to be exact, Rosendale’s team was forced to refund the excess donations.

But with some creative accounting, it appears the the Rosendale campaign figured out a way around the limits - not only for Rastin and Wright, but for other max-out contributors to the campaign. It’s a pretty ambitious end-run around campaign finance laws made possible only by Rosendale’s extensive personal wealth.