You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EIPS/DAR-vote-weight.md
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,15 @@
13
13
## Summary
14
14
Not all NFTs are created equal. Nothing exists to distinguish one NFT from another. Weight allows a DAO or other external actors to recognize some value for unique asset holdings.
15
15
16
-
## Rationale
16
+
## Motivation
17
17
This allows DAOs to form based on asset/NFT holdings instead of just ERC-20 token holdings. Asset holders may decide how to set their token weight.
18
18
19
19
## Specification
20
20
The Weighted Digital Asset Registry is an extension for ERC-821 that tracks asset weight. This follows the standard set in [ERC821](https://github.com/ethereum/EIPs/issues/821) and adds:
21
21
22
+
## Weighted DAR
23
+
Extension to ERC-821
24
+
22
25
#### totalWeight
23
26
`function totalWeight() public view returns (uint256);`
24
27
Returns the total weight tracked by the DAR
@@ -52,9 +55,24 @@ event ChangeWeight(
52
55
uint64 weight
53
56
);
54
57
```
58
+
59
+
## DAR Adapter
60
+
An adapter that exposes a `balanceOf`.
61
+
62
+
#### voteWeightAddress
63
+
`function voteWeightAddress() public view returns (address);`
64
+
Returns the address of the Weighted DAR.
65
+
66
+
#### balanceOf
67
+
`function balanceOf(address holder) public view returns (uint256);`
68
+
Calls the `weightOfHolder` function of the Weighted DAR.
69
+
55
70
## Implementation
56
71
57
-
[Weighted Digital Asset Registry](https://github.com/I-Gave/erc821/tree/weighted-registry/contracts)
72
+
[Weighted Digital Asset Registry](https://github.com/I-Gave/erc821/tree/weighted-registry/contracts) - w/ DAO voting
73
+
74
+
## Rationale
75
+
Including an adapter for the DAO to reference holder weight minimizes the impact on current DAO code that references an ERC-20's `balanceOf`
58
76
59
77
## Copyright
60
78
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
0 commit comments