> For the complete documentation index, see [llms.txt](https://opendefi-network.gitbook.io/dao/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://opendefi-network.gitbook.io/dao/governance/reward-distribution.md).

# Reward Distribution

Here we describe and develop a heuristic model for attributing credit and rewards in the context of a DAO's evdience-based governance processes.

## Relation to Computer Aided Governance

[Computer Aided Governance](https://medium.com/block-science/computer-aided-governance-cag-a-revolution-in-automated-decision-support-systems-9faa009e57a2) is increasingly being put into practice as "a decision-support process that leverages blockchain technology and cadCAD to simulate the potential results of governance policies, leading to better informed decision making". In the particular Evidence-Based decision process described herein, we extend or generalize this focus on integrative simulation models to include the types of evidence in the following section.

### Types of evidence

In general, the types of evidence considered in DAO governance is, in order of increasing effort & utility to decision makers:

* Raw Data
* Graphs / Plotting / Visualization
* Clustering (Unsupervised)
* Machine Learned (or Statistical) modeling (Predictive – Supervised)
* Integrative Simulation Models (including cadCAD)
* Reports / Analyses

## Evidence-Based Decision Making Process

Consider a potential DAO's evidence-based decision-support cycle in Figure 1, below;

![](https://i.imgur.com/2YLCgaM.png)

Figure 1. An evidence-based decision support cycle executed by a DAO.

Initially, a question to be decided is put in front of governance, for example whether or not to incubate a potential candidate project, on the appropriate subDAO forum. Then, data is collected, analyzed (often using models), and thoroughly discussed. Following discussion, it may become clear that more evidence is required before making a decision, in which case there's a mini-feedback-loop that takes the process back to the data collection phase, since additional supporting evidence is required. Or perhaps there is consensus in the community that there is enough evidence (this can be done through informal polling or other signaling), then the decision proceeds to a binding vote. Once the action is taken on the decision, the new activity will generate new information, that can be considered in future decisions. This is clearly a simplification because in practice, data is never perfectly clean, and Data Collection involves sourcing and cleaning data, and often transforming the format to something more amenable to the analysis step. Additionally, several of these decision processes may be occurring simultaneously concerning different issues before the DAO.

Also, more automated models and applications of this process are possible. By removing the human-centric "ask a question" and "discussion" phases, and automating the Voting/Decision phase (through various means including AI) the loop starts looking more like the classical closed-loop control system.

## A Case Study

Soon after launching the Open DeFi DAO will feature a governance discussion forum, with a section dedicated to producing evidence for decision support populated by a self-organised data-oriented community of contributors.

Let's say, for example, a sub-topic of the forum is related to providing evidence to support the decision whether or not to incubate a new project involving a new innovative type of meta-vault.

Let's say the forum topic related to this meta-vault decision contains several posts.

Two high-level reports are there, built on earlier, foundational analyses. The posted "Token Economics Report" presents results from & discusses earlier analyses and models posted on the forum. It adds value by bringing together and presenting the previous results comprehensively.

![](https://i.imgur.com/Y39Kiif.png)

Figure 2. A selection of forum post titles is shown, with the "Token Economics Report" showing which previous posts it refers to and builds upon. The links are understood to be cryptographic hashes.

The "Report on New Vaults" is another top-level report that summarizes other evidence, although its constituent parts are not shown, to simplify the discussion.

In the spirit of Radical Transparency the norms of the community require reports and analyses to reference source material whether the source is raw data or some other artifact resulting from earlier analysis. Cryptographic hashes are used when referring to earlier evidence, providing a chain of provenance back to the original sources.

![](https://i.imgur.com/J3yQGfi.png)

Figure 3. The provenance of sources underlying the decision support evidence on the forum.

The Figure 3 shows the provenance of data and analytics that are the foundation for the "Token Economics Report". It shows that the evidence from the "Machine Learned Model", "Data Visualization", and "Market Simulation", in turn, are based on evidence posted earlier to the forum including "Raw Market Data", "Blockchain Data", and "Behavioral Data". The "Report on New Vaults" is also based on earlier analyses, models, and data, but these are not shown for simplicity here.

![](https://i.imgur.com/NMmJnbF.png)

Figure 4. Decision support evidence as a Directed Acyclic Graph (DAG) of hashes.

We can form an Directed Acyclic Graph (DAG) $$\mathcal H$$out of the hashes of incubation decision support evidence on the forum which we will refer to as $$h\_i \in H$$where $$H$$ is the set of nodes in $$\mathcal H$$. The directed edge between nodes $$h\_i$$denotes that the head points to the node referring to information in the node at the tail of the edge. In Figure 4, node $$h\_1$$incorporates information contained within nodes $$h\_1$$, $$h\_2$$and $$h\_3$$ .

&#x20;

![](https://4195778133-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MY7DC_Pr-ybmJDkeI2x%2F-Mh8eypuTXmUdqBVlAQZ%2F-MhBIOkdO8akiWMGMiZ4%2FDAO_Design_3.034.png?alt=media\&token=d1ded778-d507-475c-8b75-2d37e8ccedab)

Figure 5. Labeling the Sinks, Sources, Successor, and Predecessor nodes for a node $$h\_1$$ in an arbitrary DAG $$\mathcal H$$

Let $$S^+$$be the set of *sinks* that satisfy $$\forall h\_s \in S^+:deg^-(h\_s) = 0$$

Furthermore, let $$S^-$$be the set of *sources* that satisfy $$\forall h\_s \in S^-:deg^+(h\_s) = 0$$&#x20;

Then, for any $$H \neq \emptyset$$,$$|S^+| \ge 1$$and $$|S^-| \ge 1$$ that is, there is at least one *source* node and at least one *sink* node, for any non-empty set of evidence nodes $$H$$

$$\mathcal H$$may or may not be a *rooted* graph.

## Utility of Posted Evidence to the Decision Making Process

Let $$\mathbb{U}(h\_i)$$denote a utility function that maps the evidence $$h\_i$$to a utility $$u\_i$$.

In general, $$\mathbb{U}$$could take many forms, and could be assigned by a subset of (or all) DAO participants, a process which could be modeled as a dynamic system of interacting Economic Agents.

Assume that the utility function has the property $$\mathbb{U}(H) = \sum\_{i =0}^{n} \mathbb{U}(h\_i)$$where $$n = |H|$$.

## The Changing State of Available Evidence

The state or set of evidence in $$H$$ evolves through the addition of new evidence $$h\_j$$ to transition to a new state $$H^+$$.

Initially the forum begins with no evidence $$H = \emptyset$$.

And evidence is added over time,

$$H^+=H\cup {h\_j}: h\_j \notin H$$&#x20;

$$h\_j$$can be *primary data,* or *source* in the graph theory sense, that is, $$h\_j \in S^-$$.

Alternatively, $h\_j$ can be the result of a complex transformation $$R\_j(H\_j)$$ where $$H\_j \subseteq H$$therefore, $$h\_j = R\_j(H\_j) : H\_j \subseteq H$$where $$R\_j$$is an arbitrary function, sequence of logical operations, or nonlinear algorithm including simulations and machine-learned transformations, or plain language argument.

## Estimating Utility Contributions

We want to estimate $$k\_i$$, the utility contribution of each $$h\_i \in H$$so that ultimately rewards can flow to the individual providers of $$h\_i$$proportional to their contribution.

Let $$B\_i$$be the set of *predecessor* nodes to $$h\_i$$.

Let $$J\_i$$be the set of *successor* nodes to $$h\_i$$.

### Bottom-Up Perspective

The utility of the evidence node is the utility of the supporting evidence *plus* the "lift" or additional evidence generated by performing transformation $$R\_j$$. Thus, we argue that: (1) $$\mathbb{U}(h\_i) = \mathbb{U}(B\_i) + k\_i$$&#x20;

Where $$k\_i$$is the value or Utility added by performing $$R\_i(B\_i)$$. $$k\_i$$can be thought of as the "credit" attributed to $$h\_i$$and by association the account that posted it.

We note that when $$\mathbb{U}(h\_i) = \mathbb{U}(B\_i)$$this implies that $$k\_i = 0$$ which corresponds to the case where evidence $$h\_i$$references sources but does not deliver any additional useful insight over the predecessor evidence. We assume that such evidence won't have any successor evidence and the credit assigned directly by forum users, will tend towards 0.

If we assume that the contribution of $$h\_i$$is approximately proportional to the utility of its source evidence: $$k\_i \approx \mathbb{U}(B\_i)$$then we can say, $$\mathbb{U}(h\_i) = 2\* k\_i$$and,&#x20;

(2) $$k\_i = \mathbb{U}(h\_i) / 2$$

$$\mathbb{U}(h\_i)$$is bounded as follows:

$$\mathbb{U}(h\_j\in J\_i)\ge\mathbb{U}(h\_i)\ge \mathbb{U}(B\_i)$$

### Top-Down Perspective

The total utility of evidence $$h\_i$$from a "top down" perspective can be also expressed as,

(3) $$\mathbb{U}(h\_i) = \mathbb{U}(J\_i|h\_i) + \mathbb{U}(C\_i)$$&#x20;

As before, let $$J\_i$$be the set of *successor nodes to* $$h\_i$$, $$\mathbb{U}(J\_i|h\_i)$$is the computed estimate of the utility of the contribution of $$h\_i$$to the successor nodes, and $$\mathbb{U}(C\_i)$$is the estimated utility as assigned by forum members.

An expression to describe $$\mathbb{U}(J\_i|h\_i)$$is then:

(4) $$\mathbb{U}(J\_i|h\_i) = \sum\_{h\_j \in J\_i}\frac{\alpha \cdot\mathbb{U}(h\_j)}{deg^-(h\_j)}$$

Where $$\alpha$$is an attenuation factor, which, in general adheres to $$1\ge \alpha\ge 0$$and to be consistent with (2) can be $$\alpha = 1/2$$

### Combined Perspective

Finally, by substituting (4) into (3):

$$\mathbb{U}(h\_i) = \sum\_{h\_j \in J\_i}\frac{\alpha \cdot\mathbb{U}(h\_j)}{deg^-(h\_j)} + \mathbb{U}(C\_i)$$&#x20;

and then substituting into (2) we get&#x20;

$$k\_i = \frac{\sum\_{h\_j \in J\_i}\frac{\alpha \cdot\mathbb{U}(h\_j)}{deg^-(h\_j)} + \mathbb{U}(C\_i)}{2}$$&#x20;

### Voting Member's Credit Allocation

Each voting member in the DAO receive a number of tokens $$\kappa$$per governance decision the member voted in; these specialized tokens are only used to assign credit to evidence posted in the governance forum.

In the set of voting members $$P$$, each voting member $$p\in P$$assigns zero or more of their $$\kappa$$tokens to signal the utility or importance of a particular piece of evidence $$h\_i$$Then, $$c\_{p\_i}$$ is the credit that user $$p$$assigns to $$h\_i$$and $$C\_i = \sum\_{p\in P}c\_{pi}$$with the constraint that $$\sum\_{i}c\_{p\_i} \leq \kappa$$&#x20;

Assuming during some epoch the total awards available for distribution are $$A$$ then the portion of $$A$$allocated to $$h\_i$$is $$A\_i = \frac{k\_i}{\sum\_{j \in H}{k\_j}}$$&#x20;

The reward $$A\_i$$ gets sent to the address (user) who originally posted the evidence.

Interestingly, we have demonstrated that this credit assignment is possible without each voting member having to explicitly judge the utility of evidence against the predecessor or source evidence used.

### Award Funding & Budget

The award budget $$A$$ can be allocated using a mechanism called a [Proposal Inverter](https://medium.com/primedao/exploring-dao2dao-collaboration-mechanisms-c37218a17a21) which is useful for funding public goods. From the perspective of the DAO, evidence on the forum can be regarded as a public good. Periodically, one or more [Sub-DAOs](https://opendefi.medium.com/restructuring-daos-for-fair-compensation-mechanisms-reputation-and-efficiency-9865a88e80c7) can vote to fund the Proposal Inverter's pool. This pool regularly drips funding according to a preset function, yielding the award budget $$A$$for any particular epoch.

### Spam Avoidance

The Proposal Inverter mechanism mentioned above, can also serve to disincentivise spam on the forum. We can require that Data Scientist contributors to the forum, need to stake a certain number of (governance) tokens per epoch in order to post evidence on the forum. This can be further augmented by using a bonding curve.

The staking mechanism itself incurs an opportunity cost on the posters - those expecting to waste the time of others will not get rewarded to compensate their staked tokens. This can be further augmented by allowing the community to slash the stake of posters that are spamming the forum.

### Sybil Resistance

In general, decentralized governance is prone to so-called Sybil attacks whereby one member/voter pretends to be many individuals by partitioning tokens into several wallets or addresses. The DAO will periodically award Non-Fungible, Non-Transferrable, Contributor Tokens recognizing the contributions of individual contributors. These tokens act as a "proof of work" and thereby provide a form of soft Sybil resistance, because an attacker would have to put in a considerable amount of effort in order to make the requisite contributions across many different addresses.
