FILE PHOTO: Rick Gates, former campaign aide to U.S. President Donald Trump, departs after a hearing at U.S. District Court in Washington, DC, U.S., December 11, 2017. REUTERS/Joshua Roberts/File Photo

WASHINGTON (Reuters) - The government’s star witness in the tax and bank fraud trial of President Donald Trump’s former campaign chairman Paul Manafort finished testifying on Wednesday after three days in which defense lawyers sought to chip away at his character and credibility.

Rick Gates, who also worked on Trump’s 2016 presidential campaign, was dismissed by a federal judge in Alexandria, Virginia, after admitting he stole money from his former boss Manafort and helped falsify documents to avoid taxes. Defense lawyers tried to paint him as a liar, asking about extramarital affairs and funds he embezzled from Manafort.