Can markets predict the future? How blockchain prediction markets work, what they do well, and where they break