Bitcoin tops $3,400 as investor confidence boosts it to record high