Dollar hovers near the brink