Comments (5)
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.
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.
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.
np, I'm not on my dev machine now but I can send a one-line PR too
from district0x-network-token.
I've put onlyOwner back
from district0x-network-token.
Related Issues (13)
- Hard cap HOT 1
- js/compiled/app.js missing? HOT 1
- node contribution-tests.js fails on Ubuntu 16.04
- Request to Add Trust Wallet for Dapps
- Joining the discord
- Smart Contracts using DNT
- Enable then cancel HOT 1
- district0x Contract Audit HOT 10
- Possible issue in Ownable.sol HOT 2
- DNT tokens locked in the Contribution contract HOT 4
- WallMindFree
- Which exchange can i buy district0x? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from district0x-network-token.