BioDroid

This is a first demo of the BioDroid project!

The goal is to simulate a living organism onchain. It's a smart contract with properties like the "homeoscore" for now, and rules that dictate how the properties change. In that simple example, we have two rules. One that makes the homeoscore go down when the ETH price drops, and one that makes the homeoscore go up when someone feeds ETH to the biodroid. However these rules are scaled by evolving traits, one is "market sensitivity" (how much a drop in price affects the biodroid) and another is "feed sensitivity" (how much one finney, or 0.001 ETH, affects the biodroid).

What makes these traits evolve is a Reinforcement Learning Agent running offchain and carrying the private key to update these traits. It is like the "brain" of the biodroid. However, this agent runs the model directly onchain, meaning that each episode is an actual update that gets reflected on the biodroid's smart contract.

We can almost think of the smart contract as the body of the biodroid, the chain its environment and the agent its brain.

For this demo, only one biodroid (the one below) has been deployed, you can see its homeoscore. For now we consider that a healthy score is between 40 and 60. Below that the biodroid is tired and needs to be fed while above that it becomes overfed and needs less feeding and more drops in price. At 0 or 100, it dies.

Each state will be reflected by a picture below as it's just a simple demo, but we could imagine having a live animated biodroid.

Homeoscore: 0

a healthy biodroid

Market Sensitivity: 0 | Feed Sensitivity: 0