The prospect of peace is reshaping markets, in ways both ominous and promising