Skip to content

Commit 1ecd915

Browse files
tenthirtyonetenthirtyone
authored andcommitted
Added DAP Adapter and DAO voting tests
1 parent 3b81da1 commit 1ecd915

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

EIPS/DAR-vote-weight.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
## Summary
1414
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.
1515

16-
## Rationale
16+
## Motivation
1717
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.
1818

1919
## Specification
2020
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:
2121

22+
## Weighted DAR
23+
Extension to ERC-821
24+
2225
#### totalWeight
2326
`function totalWeight() public view returns (uint256);`
2427
Returns the total weight tracked by the DAR
@@ -52,9 +55,24 @@ event ChangeWeight(
5255
uint64 weight
5356
);
5457
```
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+
5570
## Implementation
5671

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 `balancneOf`
5876

5977
## Copyright
6078
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).

0 commit comments

Comments
 (0)