Six banks repaid nearly half a billion dollars in funds they received from the government bailout of Wall Street, the Treasury Department said, bringing the total bank repayment under the Troubled Asset Relief Program to 99%.

The Treasury on Wednesday said the banks repurchased TARP investments with proceeds to taxpayers totaling about $475 million. TARP was created in 2008, with its Capital Purchase Program set up for banks hurt in the financial crisis.

Through the repayments announced Wednesday, as well as dividends and interest, taxpayers have recovered about $244 billion of the $245 billion in TARP funds disbursed to banks, the Treasury said. The Treasury currently estimates that bank programs within TARP will ultimately provide a lifetime profit of nearly $20 billion to taxpayers

The six banks that repaid their TARP funds Wednesday are: Fifth Third Bancorp of Cincinnati; National Penn Bancshares Inc. of Boyertown, Pa.; Lakeland Bancorp Inc. of Oak Ridge, N.J.; Stockmens Financial Corp. of Rapid City, S.D.; Bridge Capital Holdings of San Jose, Calif.; and Heritage Bankshares of Norfolk, Va.

Fifth Third Bancorp, which was one of the largest banks still holding bailout funds, said it agreed to pay $280 million to repurchase warrants issued to the U.S. government that would have allowed it to purchase more than 43.6 million shares at $11.72 a share.