Contract 0x5137A403Dd25e48DE528912a4aF62881e625D801

 

Contract Overview

Huddl Token
Balance:
0 Ether

EtherValue:
$0.00

Token:
Txn Hash
Method
Block
From
To
Value
0x5c7cce5b59165f7378242877c2321fda606a374bceb42b84cdb28e5a6b30149cApprove152708752022-08-03 17:46:0552 days 1 hr ago0xd09265cbefd2eacfa9157d306f3882f00da954c7 IN  Huddl Token0 Ether0.00064079 24.49793955
0x88c81d998ebe6d7526c99dae28c8715c08003c0e1634fc4e567a41750f733db0Transfer140386942022-01-19 22:31:00247 days 20 hrs ago0x723b5ea922ea92a0a11e0d0a2d6bfacd8b7468fd IN  Huddl Token0 Ether0.00332101110
0xc7eaabbb7b1a3813fb46ec4db49e2eb54818dd7b8de2beabe9ba9201ac3c3e25Transfer140326372022-01-19 0:01:57248 days 18 hrs ago0x32b5721b4e575526bb644d530e42252b01670fcb IN  Huddl Token0 Ether0.00362292120
0x4806dae3c4ebcf8baba0f9c913e4b4d03f928d6110e77ae0e4d7d58a1e348cf6Transfer140323232022-01-18 22:45:34248 days 20 hrs ago0x1461726a880ef3e431a29184ac0ff9c564aebb63 IN  Huddl Token0 Ether0.00420036120
0x6a47bb55e6164261c21297982f9960e35fb19b3fff090b9024a0f3e7fc72a1cdTransfer140323092022-01-18 22:43:12248 days 20 hrs ago0x6d286ed2537f3a55d66714f8d1f9dcdad50f3be0 IN  Huddl Token0 Ether0.00362148120
0x926bfcffb9b436d7528f97572da36e706a0a696fd3df02042db0fa1a72da63e3Transfer140322842022-01-18 22:39:15248 days 20 hrs ago0xe58f2b8c5c829f7e6653a7cc43958c32b802f9c8 IN  Huddl Token0 Ether0.00419892120
0xb41464eae09fa0ac00543465b2597bc38d22dacacad168ae50a8d8efa8481f23Transfer140322582022-01-18 22:33:45248 days 20 hrs ago0xe58f2b8c5c829f7e6653a7cc43958c32b802f9c8 IN  Huddl Token0 Ether0.00936558180
0x83e1437cbb270d3975fc79d3e13aa80ff893f9365828dea348bf31fa6ac3e0edTransfer137455002021-12-05 10:16:13293 days 8 hrs agoBitMart 2 IN  Huddl Token0 Ether0.00286633 60.59527043
0xe59f19697c6c02b4f491e884d57f02642fd686040c259e334b7cfd8ca56e28dcTransfer128754852021-07-22 9:58:02429 days 9 hrs agoENS Name lulleaux.eth IN  Huddl Token0 Ether0.0006530117.6
0x05a3bde9aab1fa300cd65e9a85f4960c053bf4e03d15e1107cd5055fe7f42e0dTransfer118466432021-02-13 6:14:52588 days 12 hrs agoBitMart 2 IN  Huddl Token0 Ether0.00826008158
0x55760d238b6af91ae48053cfb8af9b216399f68e29dfbe78704304b1b18747c9Transfer117655132021-01-31 18:47:59601 days 11 mins agoBitMart 2 IN  Huddl Token0 Ether0.0074582200
0x9ac1c03fbe150d32d15b43d8ff69e45a2c5396dbc26682a7fcaadf9ca7ffeb56Transfer110860772020-10-19 11:06:59705 days 7 hrs agoBitMart 2 IN  Huddl Token0 Ether0.0025088148
0x3c4b17cbed3a0985a7cfa59f8baae933d2a3e30928aed8d83a0707c2e7341e09Transfer110810822020-10-18 16:52:29706 days 2 hrs ago0xf9c6f028087643305e0e09e94bd235f0a314c223 IN  Huddl Token0 Ether0.0007460620
0x18d1b2e8e53e644aeb1124e29fc6e73deb1709143ffdd349c128c2b9fa97fa08Transfer108385502020-09-11 5:03:32743 days 13 hrs agoBitMart 2 IN  Huddl Token0 Ether0.00914882175
0x425480b9b370981981f8ce6c82eae10cee5c85ab877edf3bc72f3e29062fd314Transfer106728832020-08-16 19:03:50768 days 23 hrs agoBitMart 2 IN  Huddl Token0 Ether0.0034680693
0x809bb7293d0bdd98aef59ec625e8adef0a9a14cceb31db078ee97eba1f29b8a3Transfer106217762020-08-08 22:07:18776 days 20 hrs agoBitMart 2 IN  Huddl Token0 Ether0.0027714253
0x2369611edfd8c3f164c1d9f443073f585f37bfc87db7716d91cae2a2635b5171Transfer105787682020-08-02 6:32:09783 days 12 hrs agoBitMart 2 IN  Huddl Token0 Ether0.0040820578.1000016
0xd757614ac1f5f2929ae7b99592626dfa030cb63681d9d30f64c1a0810fe8c201Transfer105545272020-07-29 12:32:22787 days 6 hrs agoBitMart 2 IN  Huddl Token0 Ether0.0031676985
0x50ed60b0c73cad1330a31dec1cd2e90423ea46ee1571ff0483b2a5178c968390Approve105369092020-07-26 19:08:19789 days 23 hrs ago0x23d2abc0d5069d4db2beb04c39c14f836575a90f IN  Huddl Token0 Ether0.0027312862
0xa20b3e650ff2bcf1c879f35b5ba152b1e0c26101583bfe79120e199119de8e9dApprove105369062020-07-26 19:07:49789 days 23 hrs ago0x23d2abc0d5069d4db2beb04c39c14f836575a90f IN  Huddl Token0 Ether0.0016740138
0x8fae4b83636b9e53287118dc9008ede8f4e51d433bcb635a0b61734c7ba71977Transfer105368232020-07-26 18:50:18790 days 9 mins agoENS Name lulleaux.eth IN  Huddl Token0 Ether0.0039209275
0x6f7f2d0bd2d24b4e642139845dba06f71951b685c06b7abbabaa4e9320ceb950Transfer103727962020-07-01 9:45:01815 days 9 hrs ago0xb7ad5b63fd0a199786a39fde646c934b170391f3 IN  Huddl Token0 Ether0.0014543439.00000145
0xaf37f8343a174048dd64e05125eb1f507ec38545c5b9194bbf381f943561de71Transfer102133822020-06-06 17:01:41840 days 1 hr agoBitMart 2 IN  Huddl Token0 Ether0.0023525545
0xd4b79fe71ae0c7528e61141d650d8fe1159efab880d5afa6f8ea5873d1b31365Transfer101936832020-06-03 15:43:26843 days 3 hrs agoBitMart 2 IN  Huddl Token0 Ether0.0016210231
0xecbdd21e0a71d626943e933778c7ead213e1495e9c3cf6f847850d98e71f50edApprove101858402020-06-02 10:23:56844 days 8 hrs ago0x6a18e5458c08db541dd9ce438dcf67f9571230f2 IN  Huddl Token0 Ether0.0015426935
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HuddlToken

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-01-18
*/

pragma solidity 0.4.24;
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
interface IERC20 {
  function totalSupply() external view returns (uint256);

  function balanceOf(address who) external view returns (uint256);

  function allowance(address owner, address spender)
    external view returns (uint256);

  function transfer(address to, uint256 value) external returns (bool);

  function approve(address spender, uint256 value)
    external returns (bool);

  function transferFrom(address from, address to, uint256 value)
    external returns (bool);

  event Transfer(
    address indexed from,
    address indexed to,
    uint256 value
  );

  event Approval(
    address indexed owner,
    address indexed spender,
    uint256 value
  );
}

// File: contracts/IHuddlToken.sol

contract IHuddlToken is IERC20{

    function mint(address to, uint256 value)external returns (bool);
    
    function decimals() public view returns(uint8);
}

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, reverts on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b);

    return c;
  }

  /**
  * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b > 0); // Solidity only automatically asserts when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

  /**
  * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b <= a);
    uint256 c = a - b;

    return c;
  }

  /**
  * @dev Adds two numbers, reverts on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a);

    return c;
  }

  /**
  * @dev Divides two numbers and returns the remainder (unsigned integer modulo),
  * reverts when dividing by zero.
  */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0);
    return a % b;
  }
}

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address private _owner;

  event OwnershipTransferred(
    address indexed previousOwner,
    address indexed newOwner
  );

  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() internal {
    _owner = msg.sender;
    emit OwnershipTransferred(address(0), _owner);
  }

  /**
   * @return the address of the owner.
   */
  function owner() public view returns(address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(isOwner());
    _;
  }

  /**
   * @return true if `msg.sender` is the owner of the contract.
   */
  function isOwner() public view returns(bool) {
    return msg.sender == _owner;
  }

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   * @notice Renouncing to ownership will leave the contract without an owner.
   * It will not be possible to call the functions with the `onlyOwner`
   * modifier anymore.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipTransferred(_owner, address(0));
    _owner = address(0);
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    _transferOwnership(newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address newOwner) internal {
    require(newOwner != address(0));
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}

// File: contracts/HuddlDistribution.sol

contract HuddlDistribution is Ownable {
    
    using SafeMath for uint256;

    IHuddlToken token;
    
    uint256 lastReleasedQuarter;

    address public usersPool;
    address public contributorsPool;
    address public reservePool;

    uint256 public inflationRate;
    //4% == 400 (supports upto 2 decimal places) for 4.5% enter 450
    uint16 public constant INFLATION_RATE_OF_CHANGE = 400;

    uint256 public contributorDistPercent;
    uint256 public reserveDistPercent;

    uint16 public contributorROC;
    uint16 public reserveROC;

    uint8 public lastQuarter;//last quarter for which tokens were released
    
    bool public launched;
    
    //1000,000,000 (considering 18 decimal places)
    uint256 public constant MAX_SUPPLY = 1000000000000000000000000000;

    uint256[] public quarterSchedule;

    event DistributionLaunched();

    event TokensReleased(
        uint256 indexed userShare, 
        uint256 indexed reserveShare, 
        uint256 indexed contributorShare
    );

    event ReserveDistributionPercentChanged(uint256 indexed newPercent);

    event ContributorDistributionPercentChanged(uint256 indexed newPercent);

    event ReserveROCChanged(uint256 indexed newROC);

    event ContributorROCChanged(uint256 indexed newROC);

    modifier distributionLaunched() {
        require(launched, "Distribution not launched");
        _;
    }

    modifier quarterRunning() {
        require(
            lastQuarter < 72 && now >= quarterSchedule[lastQuarter],
            "Quarter not started"
        );
        _;
    }

    constructor(
        address huddlTokenAddress, 
        address _usersPool, 
        address _contributorsPool, 
        address _reservePool
    )
        public 
    {

        require(
            huddlTokenAddress != address(0), 
            "Please provide valid huddl token address"
        );
        require(
            _usersPool != address(0), 
            "Please provide valid user pool address"
        );
        require(
            _contributorsPool != address(0), 
            "Please provide valid contributors pool address"
        );
        require(
            _reservePool != address(0), 
            "Please provide valid reserve pool address"
        );
        
        usersPool = _usersPool;
        contributorsPool = _contributorsPool;
        reservePool = _reservePool;

        //considering 18 decimal places (10 * (10**18) / 100) 10%
        inflationRate = 100000000000000000;

        //considering 18 decimal places (33.333 * (10**18) /100)
        contributorDistPercent = 333330000000000000; 
        reserveDistPercent = 333330000000000000;
        
        //Supports upto 2 decimal places, for 1% enter 100, for 1.5% enter 150
        contributorROC = 100;//1%
        reserveROC = 100;//1%

        token = IHuddlToken(huddlTokenAddress);

        //Initialize 72 quarterly token release schedule for distribution. Hard-coding token release time for each quarter for precision as required
        quarterSchedule.push(1554076800); // 04/01/2019 (MM/DD/YYYY)
        quarterSchedule.push(1561939200); // 07/01/2019 (MM/DD/YYYY)
        quarterSchedule.push(1569888000); // 10/01/2019 (MM/DD/YYYY)
        quarterSchedule.push(1577836800); // 01/01/2020 (MM/DD/YYYY)
        quarterSchedule.push(1585699200); // 04/01/2020 (MM/DD/YYYY)
        quarterSchedule.push(1593561600); // 07/01/2020 (MM/DD/YYYY)
        quarterSchedule.push(1601510400); // 10/01/2020 (MM/DD/YYYY)
        quarterSchedule.push(1609459200); // 01/01/2021 (MM/DD/YYYY)
        quarterSchedule.push(1617235200); // 04/01/2021 (MM/DD/YYYY)
        quarterSchedule.push(1625097600); // 07/01/2021 (MM/DD/YYYY)
        quarterSchedule.push(1633046400); // 10/01/2021 (MM/DD/YYYY)
        quarterSchedule.push(1640995200); // 01/01/2022 (MM/DD/YYYY)
        quarterSchedule.push(1648771200); // 04/01/2022 (MM/DD/YYYY)
        quarterSchedule.push(1656633600); // 07/01/2022 (MM/DD/YYYY)
        quarterSchedule.push(1664582400); // 10/01/2022 (MM/DD/YYYY)
        quarterSchedule.push(1672531200); // 01/01/2023 (MM/DD/YYYY)
        quarterSchedule.push(1680307200); // 04/01/2023 (MM/DD/YYYY)
        quarterSchedule.push(1688169600); // 07/01/2023 (MM/DD/YYYY)
        quarterSchedule.push(1696118400); // 10/01/2023 (MM/DD/YYYY)
        quarterSchedule.push(1704067200); // 01/01/2024 (MM/DD/YYYY)
        quarterSchedule.push(1711929600); // 04/01/2024 (MM/DD/YYYY)
        quarterSchedule.push(1719792000); // 07/01/2024 (MM/DD/YYYY)
        quarterSchedule.push(1727740800); // 10/01/2024 (MM/DD/YYYY)
        quarterSchedule.push(1735689600); // 01/01/2025 (MM/DD/YYYY)
        quarterSchedule.push(1743465600); // 04/01/2025 (MM/DD/YYYY)
        quarterSchedule.push(1751328000); // 07/01/2025 (MM/DD/YYYY)
        quarterSchedule.push(1759276800); // 10/01/2025 (MM/DD/YYYY)
        quarterSchedule.push(1767225600); // 01/01/2026 (MM/DD/YYYY)
        quarterSchedule.push(1775001600); // 04/01/2026 (MM/DD/YYYY)
        quarterSchedule.push(1782864000); // 07/01/2026 (MM/DD/YYYY)
        quarterSchedule.push(1790812800); // 10/01/2026 (MM/DD/YYYY)
        quarterSchedule.push(1798761600); // 01/01/2027 (MM/DD/YYYY)
        quarterSchedule.push(1806537600); // 04/01/2027 (MM/DD/YYYY)
        quarterSchedule.push(1814400000); // 07/01/2027 (MM/DD/YYYY)
        quarterSchedule.push(1822348800); // 10/01/2027 (MM/DD/YYYY)
        quarterSchedule.push(1830297600); // 01/01/2028 (MM/DD/YYYY)
        quarterSchedule.push(1838160000); // 04/01/2028 (MM/DD/YYYY)
        quarterSchedule.push(1846022400); // 07/01/2028 (MM/DD/YYYY)
        quarterSchedule.push(1853971200); // 10/01/2028 (MM/DD/YYYY)
        quarterSchedule.push(1861920000); // 01/01/2029 (MM/DD/YYYY)
        quarterSchedule.push(1869696000); // 04/01/2029 (MM/DD/YYYY)
        quarterSchedule.push(1877558400); // 07/01/2029 (MM/DD/YYYY)
        quarterSchedule.push(1885507200); // 10/01/2029 (MM/DD/YYYY)
        quarterSchedule.push(1893456000); // 01/01/2030 (MM/DD/YYYY)
        quarterSchedule.push(1901232000); // 04/01/2030 (MM/DD/YYYY)
        quarterSchedule.push(1909094400); // 07/01/2030 (MM/DD/YYYY)
        quarterSchedule.push(1917043200); // 10/01/2030 (MM/DD/YYYY)
        quarterSchedule.push(1924992000); // 01/01/2031 (MM/DD/YYYY)
        quarterSchedule.push(1932768000); // 04/01/2031 (MM/DD/YYYY)
        quarterSchedule.push(1940630400); // 07/01/2031 (MM/DD/YYYY)
        quarterSchedule.push(1948579200); // 10/01/2031 (MM/DD/YYYY)
        quarterSchedule.push(1956528000); // 01/01/2032 (MM/DD/YYYY)
        quarterSchedule.push(1964390400); // 04/01/2032 (MM/DD/YYYY)
        quarterSchedule.push(1972252800); // 07/01/2032 (MM/DD/YYYY)
        quarterSchedule.push(1980201600); // 10/01/2032 (MM/DD/YYYY)
        quarterSchedule.push(1988150400); // 01/01/2033 (MM/DD/YYYY)
        quarterSchedule.push(1995926400); // 04/01/2033 (MM/DD/YYYY)
        quarterSchedule.push(2003788800); // 07/01/2033 (MM/DD/YYYY)
        quarterSchedule.push(2011737600); // 10/01/2033 (MM/DD/YYYY)
        quarterSchedule.push(2019686400); // 01/01/2034 (MM/DD/YYYY)
        quarterSchedule.push(2027462400); // 04/01/2034 (MM/DD/YYYY)
        quarterSchedule.push(2035324800); // 07/01/2034 (MM/DD/YYYY)
        quarterSchedule.push(2043273600); // 10/01/2034 (MM/DD/YYYY)
        quarterSchedule.push(2051222400); // 01/01/2035 (MM/DD/YYYY)
        quarterSchedule.push(2058998400); // 04/01/2035 (MM/DD/YYYY)
        quarterSchedule.push(2066860800); // 07/01/2035 (MM/DD/YYYY)
        quarterSchedule.push(2074809600); // 10/01/2035 (MM/DD/YYYY)
        quarterSchedule.push(2082758400); // 01/01/2036 (MM/DD/YYYY)
        quarterSchedule.push(2090620800); // 04/01/2036 (MM/DD/YYYY)
        quarterSchedule.push(2098483200); // 07/01/2036 (MM/DD/YYYY)
        quarterSchedule.push(2106432000); // 10/01/2036 (MM/DD/YYYY)
        quarterSchedule.push(2114380800); // 01/01/2037 (MM/DD/YYYY)

    }

    /** 
    * @dev When the distribution will start the initial set of tokens will be distributed amongst users, reserve and contributors as per specs
    * Before calling this method the owner must transfer all the initial supply tokens to this distribution contract
    */
    function launchDistribution() external onlyOwner {

        require(!launched, "Distribution already launched");

        launched = true;

        (
            uint256 userShare, 
            uint256 reserveShare, 
            uint256 contributorShare
        ) = getDistributionShares(token.totalSupply());

        token.transfer(usersPool, userShare);
        token.transfer(contributorsPool, contributorShare);
        token.transfer(reservePool, reserveShare);
        adjustDistributionPercentage();
        emit DistributionLaunched();
    } 

    /** 
    * @dev This method allows owner of the contract to release tokens for the quarter.
    * So suppose current quarter is 5 and previously released quarter is 3 then owner will have to send 2 transaction to release all tokens upto this quarter.
    * First transaction will release tokens for quarter 4 and Second transaction will release tokens for quarter 5. This is done to reduce complexity.
    */
    function releaseTokens()
        external 
        onlyOwner 
        distributionLaunched
        quarterRunning//1. Check if quarter date has been reached
        returns(bool)
    {   
        
        //2. Increment quarter. Overflow will never happen as maximum quarters can be 72
        lastQuarter = lastQuarter + 1;

        //3. Calculate amount of tokens to be released
        uint256 amount = getTokensToMint();

        //4. Check if amount is greater than 0
        require(amount>0, "No tokens to be released");

        //5. Calculate share of user, reserve and contributor
        (
            uint256 userShare, 
            uint256 reserveShare, 
            uint256 contributorShare
        ) = getDistributionShares(amount);

        //6. Change inflation rate, for next release/quarter
        adjustInflationRate();

        //7. Change distribution percentage for next quarter
        adjustDistributionPercentage();

        //8. Mint and transfer tokens to respective pools
        token.mint(usersPool, userShare);
        token.mint(contributorsPool, contributorShare);
        token.mint(reservePool, reserveShare);

        //9. Emit event
        emit TokensReleased(
            userShare, 
            reserveShare, 
            contributorShare
        );
    }
   
    /** 
    * @dev This method will return the release time for upcoming quarter
    */
    function nextReleaseTime() external view returns(uint256 time) {
        time = quarterSchedule[lastQuarter];
    }

    /** 
    * @dev This method will returns whether the next quarter's token can be released now or not
    */
    function canRelease() external view returns(bool release) {
        release = now >= quarterSchedule[lastQuarter];
    }

    /** 
    * @dev Returns current distribution percentage for user pool
    */
    function userDistributionPercent() external view returns(uint256) {
        uint256 totalPercent = 1000000000000000000;
        return(
            totalPercent.sub(contributorDistPercent.add(reserveDistPercent))
        );
    }

    /** 
    * @dev Allows owner to change reserve distribution percentage for next quarter
    * Consequent calculations will be done on this basis
    * @param newPercent New percentage. Ex for 45.33% pass (45.33 * (10**18) /100) = 453330000000000000
    */
    function changeReserveDistributionPercent(
        uint256 newPercent
    )
        external 
        onlyOwner
    {
        reserveDistPercent = newPercent;
        emit ReserveDistributionPercentChanged(newPercent);
    }

    /** 
    * @dev Allows owner to change contributor distribution percentage for next quarter
    * Consequent calculations will be done on this basis
    * @param newPercent New percentage. Ex for 45.33% pass (45.33 * (10**18) /100) = 453330000000000000
    */
    function changeContributorDistributionPercent(
        uint256 newPercent
    )
        external 
        onlyOwner
    {
        contributorDistPercent = newPercent;
        emit ContributorDistributionPercentChanged(newPercent);
    }

    /** 
    * @dev Allows owner to change ROC for reserve pool
    * @dev newROC New ROC. Ex- for 1% enter 100, for 1.5% enter 150
    */
    function changeReserveROC(uint16 newROC) external onlyOwner {
        reserveROC = newROC;
        emit ReserveROCChanged(newROC);
    }

    /** 
    * @dev Allows owner to change ROC for contributor pool
    * @dev newROC New ROC. Ex- for 1% enter 100, for 1.5% enter 150
    */
    function changeContributorROC(uint16 newROC) external onlyOwner {
        contributorROC = newROC;
        emit ContributorROCChanged(newROC);
    }

    /** 
    * @dev This method returns the share of user, reserve and contributors for given token amount as per current distribution
    * @param amount The amount of tokens for which the shares have to be calculated
    */
    function getDistributionShares(
        uint256 amount
    )
        public 
        view 
        returns(
            uint256 userShare, 
            uint256 reserveShare, 
            uint256 contributorShare
        )
    {
        contributorShare = contributorDistPercent.mul(
            amount.div(10**uint256(token.decimals()))
        );

        reserveShare = reserveDistPercent.mul(
            amount.div(10**uint256(token.decimals()))
        );

        userShare = amount.sub(
            contributorShare.add(reserveShare)
        );

        assert(
            contributorShare.add(reserveShare).add(userShare) == amount
        );
    }

    
    /** 
    * @dev Returns amount of tokens to be minted in next release(quarter)
    */    
    function getTokensToMint() public view returns(uint256 amount) {
        
        if (MAX_SUPPLY == token.totalSupply()){
            return 0;
        }

        //dividing by decimal places(18) since that is already multiplied in inflation rate
        amount = token.totalSupply().div(
            10 ** uint256(token.decimals())
        ).mul(inflationRate);

        if (amount.add(token.totalSupply()) > MAX_SUPPLY){
            amount = MAX_SUPPLY.sub(token.totalSupply());
        }
    }

    function adjustDistributionPercentage() private {
        contributorDistPercent = contributorDistPercent.sub(
            contributorDistPercent.mul(contributorROC).div(10000)
        );

        reserveDistPercent = reserveDistPercent.sub(
            reserveDistPercent.mul(reserveROC).div(10000)
        );
    }

    function adjustInflationRate() private {
        inflationRate = inflationRate.sub(
            inflationRate.mul(INFLATION_RATE_OF_CHANGE).div(10000)
        );
    }

    
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
 * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract ERC20 is IERC20 {
  using SafeMath for uint256;

  mapping (address => uint256) private _balances;

  mapping (address => mapping (address => uint256)) private _allowed;

  uint256 private _totalSupply;

  /**
  * @dev Total number of tokens in existence
  */
  function totalSupply() public view returns (uint256) {
    return _totalSupply;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param owner The address to query the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address owner) public view returns (uint256) {
    return _balances[owner];
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param owner address The address which owns the funds.
   * @param spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(
    address owner,
    address spender
   )
    public
    view
    returns (uint256)
  {
    return _allowed[owner][spender];
  }

  /**
  * @dev Transfer token for a specified address
  * @param to The address to transfer to.
  * @param value The amount to be transferred.
  */
  function transfer(address to, uint256 value) public returns (bool) {
    _transfer(msg.sender, to, value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param spender The address which will spend the funds.
   * @param value The amount of tokens to be spent.
   */
  function approve(address spender, uint256 value) public returns (bool) {
    require(spender != address(0));

    _allowed[msg.sender][spender] = value;
    emit Approval(msg.sender, spender, value);
    return true;
  }

  /**
   * @dev Transfer tokens from one address to another
   * @param from address The address which you want to send tokens from
   * @param to address The address which you want to transfer to
   * @param value uint256 the amount of tokens to be transferred
   */
  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    public
    returns (bool)
  {
    require(value <= _allowed[from][msg.sender]);

    _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
    _transfer(from, to, value);
    return true;
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   * approve should be called when allowed_[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param spender The address which will spend the funds.
   * @param addedValue The amount of tokens to increase the allowance by.
   */
  function increaseAllowance(
    address spender,
    uint256 addedValue
  )
    public
    returns (bool)
  {
    require(spender != address(0));

    _allowed[msg.sender][spender] = (
      _allowed[msg.sender][spender].add(addedValue));
    emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   * approve should be called when allowed_[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param spender The address which will spend the funds.
   * @param subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseAllowance(
    address spender,
    uint256 subtractedValue
  )
    public
    returns (bool)
  {
    require(spender != address(0));

    _allowed[msg.sender][spender] = (
      _allowed[msg.sender][spender].sub(subtractedValue));
    emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
    return true;
  }

  /**
  * @dev Transfer token for a specified addresses
  * @param from The address to transfer from.
  * @param to The address to transfer to.
  * @param value The amount to be transferred.
  */
  function _transfer(address from, address to, uint256 value) internal {
    require(value <= _balances[from]);
    require(to != address(0));

    _balances[from] = _balances[from].sub(value);
    _balances[to] = _balances[to].add(value);
    emit Transfer(from, to, value);
  }

  /**
   * @dev Internal function that mints an amount of the token and assigns it to
   * an account. This encapsulates the modification of balances such that the
   * proper events are emitted.
   * @param account The account that will receive the created tokens.
   * @param value The amount that will be created.
   */
  function _mint(address account, uint256 value) internal {
    require(account != 0);
    _totalSupply = _totalSupply.add(value);
    _balances[account] = _balances[account].add(value);
    emit Transfer(address(0), account, value);
  }

  /**
   * @dev Internal function that burns an amount of the token of a given
   * account.
   * @param account The account whose tokens will be burnt.
   * @param value The amount that will be burnt.
   */
  function _burn(address account, uint256 value) internal {
    require(account != 0);
    require(value <= _balances[account]);

    _totalSupply = _totalSupply.sub(value);
    _balances[account] = _balances[account].sub(value);
    emit Transfer(account, address(0), value);
  }

  /**
   * @dev Internal function that burns an amount of the token of a given
   * account, deducting from the sender's allowance for said account. Uses the
   * internal burn function.
   * @param account The account whose tokens will be burnt.
   * @param value The amount that will be burnt.
   */
  function _burnFrom(address account, uint256 value) internal {
    require(value <= _allowed[account][msg.sender]);

    // Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
    // this function needs to emit an event with the updated approval.
    _allowed[account][msg.sender] = _allowed[account][msg.sender].sub(
      value);
    _burn(account, value);
  }
}

// File: openzeppelin-solidity/contracts/access/Roles.sol

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
  struct Role {
    mapping (address => bool) bearer;
  }

  /**
   * @dev give an account access to this role
   */
  function add(Role storage role, address account) internal {
    require(account != address(0));
    require(!has(role, account));

    role.bearer[account] = true;
  }

  /**
   * @dev remove an account's access to this role
   */
  function remove(Role storage role, address account) internal {
    require(account != address(0));
    require(has(role, account));

    role.bearer[account] = false;
  }

  /**
   * @dev check if an account has this role
   * @return bool
   */
  function has(Role storage role, address account)
    internal
    view
    returns (bool)
  {
    require(account != address(0));
    return role.bearer[account];
  }
}

// File: openzeppelin-solidity/contracts/access/roles/MinterRole.sol

contract MinterRole {
  using Roles for Roles.Role;

  event MinterAdded(address indexed account);
  event MinterRemoved(address indexed account);

  Roles.Role private minters;

  constructor() internal {
    _addMinter(msg.sender);
  }

  modifier onlyMinter() {
    require(isMinter(msg.sender));
    _;
  }

  function isMinter(address account) public view returns (bool) {
    return minters.has(account);
  }

  function addMinter(address account) public onlyMinter {
    _addMinter(account);
  }

  function renounceMinter() public {
    _removeMinter(msg.sender);
  }

  function _addMinter(address account) internal {
    minters.add(account);
    emit MinterAdded(account);
  }

  function _removeMinter(address account) internal {
    minters.remove(account);
    emit MinterRemoved(account);
  }
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol

/**
 * @title ERC20Mintable
 * @dev ERC20 minting logic
 */
contract ERC20Mintable is ERC20, MinterRole {
  /**
   * @dev Function to mint tokens
   * @param to The address that will receive the minted tokens.
   * @param value The amount of tokens to mint.
   * @return A boolean that indicates if the operation was successful.
   */
  function mint(
    address to,
    uint256 value
  )
    public
    onlyMinter
    returns (bool)
  {
    _mint(to, value);
    return true;
  }
}

// File: contracts/HuddlToken.sol

/** 
* @dev Mintable Huddl Token
* Initially deployer of the contract is only valid minter. Later on when distribution contract is deployed following steps needs to be followed-:
* 1. Make distribution contract a valid minter
* 2. Renounce miniter role for the token deployer address
* 3. Transfer initial supply tokens to distribution contract address
* 4. At launch of distribution contract transfer tokens to users, contributors and reserve as per monetary policy
*/
contract HuddlToken is ERC20Mintable{

    using SafeMath for uint256;

    string private _name;
    string private _symbol ;
    uint8 private _decimals;

    constructor(
        string name, 
        string symbol, 
        uint8 decimals, 
        uint256 totalSupply
    )
        public 
    {
    
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
        
        //The initial supply of tokens will be given to the deployer. Deployer will later transfer it to distribution contract
        //At launch distribution contract will give those tokens as per policy to the users, contributors and reserve
        _mint(msg.sender, totalSupply.mul(10 ** uint256(decimals)));
    }

    
    /**
    * @return the name of the token.
    */
    function name() public view returns(string) {
        return _name;
    }

    /**
    * @return the symbol of the token.
    */
    function symbol() public view returns(string) {
        return _symbol;
    }

    /**
    * @return the number of decimals of the token.
    */
    function decimals() public view returns(uint8) {
        return _decimals;
    }

}

// File: contracts/Migrations.sol

contract Migrations {
    address public owner;
    uint public last_completed_migration;

    constructor() public {
        owner = msg.sender;
    }

    modifier restricted() {
        if (msg.sender == owner) 
            _;
    }

    function setCompleted(uint completed) public restricted {
        last_completed_migration = completed;
    }

    function upgrade(address new_address) public restricted {
        Migrations upgraded = Migrations(new_address);
        upgraded.setCompleted(last_completed_migration);
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isMinter","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"name","type":"string"},{"name":"symbol","type":"string"},{"name":"decimals","type":"uint8"},{"name":"totalSupply","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]

60806040523480156200001157600080fd5b5060405162001c6038038062001c608339810180604052810190808051820192919060200180518201929190602001805190602001909291908051906020019092919050505062000071336200010b640100000000026401000000009004565b83600490805190602001906200008992919062000490565b508260059080519060200190620000a292919062000490565b5081600660006101000a81548160ff021916908360ff1602179055506200010133620000ec8460ff16600a0a846200017564010000000002620016a7179091906401000000009004565b620001b7640100000000026401000000009004565b505050506200053f565b6200012f816003620003166401000000000262001548179091906401000000009004565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b60008060008414156200018c5760009150620001b0565b82840290508284828115156200019e57fe5b04141515620001ac57600080fd5b8091505b5092915050565b60008273ffffffffffffffffffffffffffffffffffffffff1614151515620001de57600080fd5b6200020381600254620003d964010000000002620012a1179091906401000000009004565b6002819055506200026a816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054620003d964010000000002620012a1179091906401000000009004565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156200035357600080fd5b6200036e8282620003fb640100000000026401000000009004565b1515156200037b57600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000808284019050838110151515620003f157600080fd5b8091505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156200043957600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004d357805160ff191683800117855562000504565b8280016001018555821562000504579182015b8281111562000503578251825591602001919060010190620004e6565b5b50905062000513919062000517565b5090565b6200053c91905b80821115620005385760008160009055506001016200051e565b5090565b90565b611711806200054f6000396000f3006080604052600436106100db576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100e0578063095ea7b31461017057806318160ddd146101d557806323b872dd14610200578063313ce5671461028557806339509351146102b657806340c10f191461031b57806370a082311461038057806395d89b41146103d7578063983b2d561461046757806398650275146104aa578063a457c2d7146104c1578063a9059cbb14610526578063aa271e1a1461058b578063dd62ed3e146105e6575b600080fd5b3480156100ec57600080fd5b506100f561065d565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561013557808201518184015260208101905061011a565b50505050905090810190601f1680156101625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017c57600080fd5b506101bb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506106ff565b604051808215151515815260200191505060405180910390f35b3480156101e157600080fd5b506101ea61082c565b6040518082815260200191505060405180910390f35b34801561020c57600080fd5b5061026b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610836565b604051808215151515815260200191505060405180910390f35b34801561029157600080fd5b5061029a6109e8565b604051808260ff1660ff16815260200191505060405180910390f35b3480156102c257600080fd5b50610301600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506109ff565b604051808215151515815260200191505060405180910390f35b34801561032757600080fd5b50610366600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610c36565b604051808215151515815260200191505060405180910390f35b34801561038c57600080fd5b506103c1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c60565b6040518082815260200191505060405180910390f35b3480156103e357600080fd5b506103ec610ca8565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561042c578082015181840152602081019050610411565b50505050905090810190601f1680156104595780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561047357600080fd5b506104a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d4a565b005b3480156104b657600080fd5b506104bf610d6a565b005b3480156104cd57600080fd5b5061050c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d75565b604051808215151515815260200191505060405180910390f35b34801561053257600080fd5b50610571600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610fac565b604051808215151515815260200191505060405180910390f35b34801561059757600080fd5b506105cc600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fc3565b604051808215151515815260200191505060405180910390f35b3480156105f257600080fd5b50610647600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fe0565b6040518082815260200191505060405180910390f35b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106f55780601f106106ca576101008083540402835291602001916106f5565b820191906000526020600020905b8154815290600101906020018083116106d857829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561073c57600080fd5b81600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b6000600254905090565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156108c357600080fd5b61095282600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461106790919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109dd848484611088565b600190509392505050565b6000600660009054906101000a900460ff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610a3c57600080fd5b610acb82600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112a190919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000610c4133610fc3565b1515610c4c57600080fd5b610c5683836112c2565b6001905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b610d5333610fc3565b1515610d5e57600080fd5b610d6781611400565b50565b610d733361145a565b565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610db257600080fd5b610e4182600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461106790919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000610fb9338484611088565b6001905092915050565b6000610fd98260036114b490919063ffffffff16565b9050919050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008083831115151561107957600080fd5b82840390508091505092915050565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481111515156110d557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561111157600080fd5b611162816000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461106790919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506111f5816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112a190919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b60008082840190508381101515156112b857600080fd5b8091505092915050565b60008273ffffffffffffffffffffffffffffffffffffffff16141515156112e857600080fd5b6112fd816002546112a190919063ffffffff16565b600281905550611354816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112a190919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b61141481600361154890919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b61146e8160036115f890919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669260405160405180910390a250565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156114f157600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561158457600080fd5b61158e82826114b4565b15151561159a57600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561163457600080fd5b61163e82826114b4565b151561164957600080fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008060008414156116bc57600091506116de565b82840290508284828115156116cd57fe5b041415156116da57600080fd5b8091505b50929150505600a165627a7a72305820b9041394ac31af17d12ea8094b72ba7ede670a5ade36f00f4aebe61e12f32be50029000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000005487564646c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005485544444c000000000000000000000000000000000000000000000000000000

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000005487564646c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005485544444c000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Huddl
Arg [1] : symbol (string): HUDDL
Arg [2] : decimals (uint8): 18
Arg [3] : totalSupply (uint256): 100000000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000000000000000000000000000000000000005f5e100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 487564646c000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 485544444c000000000000000000000000000000000000000000000000000000


Swarm Source

bzzr://b9041394ac31af17d12ea8094b72ba7ede670a5ade36f00f4aebe61e12f32be5
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.