Contracts

Prerequisites:

Solidity Version: Ensure that you use the Solidity version 0.8.19.

Flat File: The contract should be in a flat file format.

Main Contract Name: The main contract should be named "Main".

Constructor: The contract must have a constructor to set the simulation duration in blocks.

Constructor Syntax: constructor(uint256 _simulationDurationInBlocks)

Naming in UI: When creating a contract in the ChainRisk UI, you can name it as you prefer. As you can see in compound oracle contract, we are dropping the price of the asset by 53%. The price is dropped every 5 blocks.

Last updated