GithubHelp home page GithubHelp logo

Comments (5)

madvas avatar madvas commented on August 23, 2024

onlyOwner was removed from this function on purpose after consulting with auditors. The function is safe to be executed by anyone and it prevents scenario when we'd not compensate contributors after the sale.

from district0x-network-token.

colterj199 avatar colterj199 commented on August 23, 2024

Interesting... It does increase the attack surface though, but if you're confident that function isn't going to be an issue, then I guess it's just fixing the comment then.

I don't really understand what that scenario would be though... you'd lose the owner private key? I mean, that's really worst case scenario, but even if that were the case, you could still launch a set of new contracts with a new private key, and only use the contributions from the previous (now unaccessible contract) to set balances on the new one. That's really just a worst case scenario...

from district0x-network-token.

madvas avatar madvas commented on August 23, 2024

Yeah, those are all very edge cases, right now it seems to me that adding it would be actually better, because enabling transfers are onlyOwner anyway.
To understand why it was removed I need to explain to you how distribution contract evolved: At first we had contract that was supposed to serve 3 rounds of contribution periods. Removing onlyOwner made sense, in case we "turned evil" and didn't want to compensate after 2nd or 3rd period. Since tokens would be already tradable on exchanges and having value. With only 1 period this wouldn't make much sense, since enabling transfers requires onlyOwner, which comes after compensation. So I'll probably add it back, thanks you 😁

from district0x-network-token.

colterj199 avatar colterj199 commented on August 23, 2024

np, I'm not on my dev machine now but I can send a one-line PR too

from district0x-network-token.

madvas avatar madvas commented on August 23, 2024

I've put onlyOwner back

from district0x-network-token.

Related Issues (13)

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.