class ProfileController {

    @GetMapping("/profile/managewallets")
    public ModelAndView manageWallets(Principal principal, HttpServletRequest request) throws UnsupportedEncodingException {
        String bearerToken = URLEncoder.encode(profileService.getArkaneAccessToken((KeycloakAuthenticationToken) principal), "UTF-8");
        String redirectUri = request.getHeader("referer");
        if (redirectUri == null) {
            redirectUri = "/profile";
        }
        redirectUri = URLEncoder.encode(redirectUri, "UTF-8");
        String url = getConnectEndpoint(bearerToken, redirectUri);
        profileService.walletsManaged(principal);
        return new ModelAndView(new RedirectView(url));
    }

    public  ProfileController(final ApplicationEventPublisher eventPublisher,
                             final ProfileService profileService,
                             final MessageService messageService,
                             final ReferralService referralService,
                             final GithubBountyService githubBountyService,
                             final @Value("${network.arkane.environment}") String arkaneEnvironment,
                             final StackOverflowBountyService stackOverflowBountyService);

}