Git Product home page Git Product logo

aragon-network-token's Introduction

Aragon Network Token

Security

Smart contracts and additional resources for the Aragon Network Token.

๐Ÿ‘‰ ANT has upgraded to ANTv2

๐Ÿ‘‡ ANTv1 is considered deprecated and should be upgraded to ANTv2

Structure

This repo is divided into multiple independent sub-packages:

  • v2: the latest ANT token contract, ANTv2
  • sale: the original v1 token sale contracts, including the ANTv1 token contract
  • controller: the final v1 token controller, severely limiting exposed controller functionality.

Important contracts

ANTv2

Both ANTv2.sol and ANTv2Migrator.sol contracts were deployed (to 0xa117000000f279D81A1D3cc75430fAA017FA5A2e and 0x078BEbC744B819657e1927bF41aB8C74cBBF912D, respectively)

ANTv1

Only the ANT.sol contract was deployed (to 0x960b236A07cf122663c4303350609A66A7B288C0).

Sale

Deployment addresses for each contract can be found in the documentation.

Controller

Only the ANTController.sol contract was deployed (to 0x2443d44325bb07861Cd8C9C8Ba1569b6c39D9d95).

aragon-network-token's People

Contributors

aesedepece avatar griffgreen avatar izqui avatar jbaylina avatar juli avatar luisivan avatar nivida avatar novaknole avatar sohkai avatar yuetloo 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aragon-network-token's Issues

Transfer to `0x0` and burn tokens emit the same event

Since the smart-contract doesn't avoid transfers to the 0x0 address, this emits the same event that when you call the burn function.

Maybe this's the desired behavior, but if you prevent the user to send tokens to 0x0 you can easily distinguish when the tokens are burned: emit Transfer(from, address(0), value). If he doesn't want the tokens to be burned but he wants the tokens locked he can always send them to 0xdEad000000000000000000000000000000000000 or any other similar address.

Due to this, we changed this line

require(to != address(this), "ANTV2:RECEIVER_IS_TOKEN");

require(to != address(this) && to != address(0), "ANTV2:RECEIVER_IS_TOKEN_OR_0");

Update README with audits

Current readme states that Piper's and Jordi's audits are Pending audit results. We should update that with the actual audit links

Some bug or very smart logic

Hi, just noticed a part of your code

// Aragon Dev owns 30% of the total number of emitted tokens at the end of the sale.
    uint256 aragonTokens = token.totalSupply() * 3 / 7;

here declaration with 30%, but below 3/7, I have checked in Remix, I thought some bug, but not, the same result as in the real life -

pragma solidity ^0.4.13;

contract MyContract {
  event Print(string _name, uint _value);
  function Test() public returns (bool) {
    uint Tokens = 1000000000000000;
    Print ("Result - ", Tokens * 3 / 9);
    return true;
  }
}

Print[
"Result - ",
"333333333333333"
]

Result of checking Your code
1000000000000000 1000000000000000
333333333333333 428571428571428
~30% ~43%

Also, I thought about presale - there also you have issued tokens, up to 15% with 1M cap. 15% for Dev from WP, in sum = 30, then what does it mean 43% before close?

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.