Giter Site home page Giter Site logo

nouns-protocol's Introduction

⌐◨-◨

nouns-protocol's People

Contributors

blokboy avatar iainnash avatar isabellasmallcombe avatar jgeary avatar kulkarohan avatar neokry avatar tbtstl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nouns-protocol's Issues

[Bug] There is a bug in MetadataRenderer.sol in the _generateSeed function

There is a bug in MetadataRenderer.sol in the _generateSeed function which impacts psuedo-randomness:

return uint256(keccak256(abi.encode(_tokenId, blockhash(block.number), block.coinbase, block.timestamp)));

blockhash(block.number) will always return0x0000000000000000000000000000000000000000000000000000000000000000, since the hash of the current block cannot be known when the transaction is being executed.

Instead, blockhash(block.number - 1) should be used.

Add the ability to allow a delegator to cast a vote for a specific address

Currently, in Governor.sol the _castVote function takes in the following:

function _castVote(
    bytes32 _proposalId,
    address _voter,
    uint256 _support,
    string memory _reason
) internal returns (uint256)

This covers:

1.) A user who doesn't have a token (reverts)
2.) A user who has a token
3.) A user who is delegated tokens

however: what if a delegated voter (ex. an autonomous agent) wanted to make a vote only for a specific token holder? This doesn't cover that case.

It would be good IMO to add another param that is used to get the votes originally belonging to someone. So say Tom delegated 5 votes to an AI agent, and Sally also gave 5 votes, the ai can vote separately for each person. There would also have to be a check to make sure that the given address has delegated to the voter (ai agent)

In the case the param is 0x000... do the same logic that we have now.

Let me know if there are any questions, or if there are better approaches to this. Really excited about everything Nouns and would love to do this!

Export "holders" including delegated tokens

Provide an option to export the current set of delegated addresses. Usually, when we get token holders this is the actual set we want. Etherscan and others provide a naive balance of tokens.

  • Probably relies on #130

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.