On-chain prediction markets such as MYRIAD have rapidly gained traction in recent years. Here’s how they work.