US banking giant Wells Fargo said Monday it had struck a deal to repay all of the 25-billion-dollar loan it received from the government last year during the financial meltdown.