Designing tokenomics resilient to oracle failures through robust smart contract patterns