Skip to content

Commit

Permalink
Update and rename readme.md to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumelauzier authored Feb 19, 2023
1 parent d1a0a25 commit 7d067a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Contractual obligations/Programmable Conditions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
In this example, the SimpleSmartContract smart contract is used to include programmable conditions related to the release of funds. The contract has an owner, a funds variable, and a conditionsMet variable. The deposit function can only be called by the owner and is used to deposit funds into the contract. The releaseFunds function can also only be called by the owner and is used to release the funds, but only if the conditions have been met. The meetConditions function can also only be called by the owner and is used to meet the necessary conditions.

When the meetConditions function is called, the conditionsMet variable is set to true. When the releaseFunds function is called, the smart contract checks that the caller is the owner and that the conditions have been met. If these conditions are met, the funds are transferred to the owner, and the funds variable is reset to zero.

By including programmable conditions in the smart contract code, it is possible to ensure that all parties comply with the terms of the contract. Smart contracts can be programmed to include a wide range of conditions, such as the completion of a project or the delivery of goods, which can help to increase trust and efficiency in business transactions.
Empty file.

0 comments on commit 7d067a5

Please sign in to comment.