Smart contracts in the Bitrent![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2Azki8x6RvBsBkN5fAAZqN3A.png&t=665&c=1u-Psqmw5I3zEg)
Smart contacts play an essential part in our distributed ledger.
Actually, the code isn’t a contract in traditional legal sense. In Bitrent platform it’s a self-executed and self-governing algorithm that replaces the need for a wider contracts or checks and balances.
![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2AHNHTnW41c1r8fwesLnatEQ.png&t=665&c=Re6537Oi759sKg)
In Bitrent smart contracts area of responsibility is divided into 2 parts: Investment and Construction. Once agreed smart contracts control the construction flow and regulate financial tranches.
In Investment after terms and conditions were settled smart contracts are responsible for return on investments. It means that when a construction is over and a building starts earning profit, all investors will get their dividends according to the smart contract conventions.
In Construction, for MVP we’ve chosen the following smart contract strategy:
The system would include one smart contract with diverse methods to which will call the platform backend while operating. In other words, each project will have it’s owns smart contract methods suit which is registered in the platform backend.
![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2AhDViMHT3CF1ZV538iI02Sg.png&t=665&c=ymuyDqrpOPKR2Q)
In the UI it will be represented by smart contract constructor. Participants choose optional methods that are marked in the backend and saved to the project blockchain node and when conditions change statuses backend calls to the chosen method to act in accordance with its terms and conditions.
Smart contract usage simplifies construction process by omitting 3d party audit service, developer saves budget sources to implement equipment as to correspond to “green standards” like Active house, LEED, BREEAM, and etc.
GitHub:
https://github.com/bitrent/Bitrent-Platform