3.5. Gas prices, currency of payment

From СhainInLaw
Jump to: navigation, search

Since smart contracts are created in the Turing-complete language, a restriction on the consumed computing power is required. Our platform implements the standard mechanism for charging for the computing power necessary to execute a smart contract.

The cost of the smart contract is determined as follows: defining computational complexity of this smart contract with a special gas price calculator. At the same time, the Consilium, guided by its own rules, can set a multiplying factor (contract Multiplier) for the cost of contract execution by its nodes.

When one runs a smart contract using the standard procedure, the transaction during the execution of a smart contract method transfers the required amount of gas in the payment account as the cost of its implementation. If the smart contract exceeds the paid amount, then the smart contract execution is stopped, nothing is written to the registry, commissions are charged and distributed in accordance with the rules of the Consensus.