Contract 0x5137a403dd25e48de528912a4af62881e625d801

 

TxHash Block Age From To Value [TxFee]
0xf91ba1da7160e5b0eff521a9c2c1b0e04e81fc6cdbb87c0a2e60f0d975df0c5374206491 min ago0xf87e63e5dac4a80b1a9d27c1724283c5e175319a IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000182612
0xfec1af1b98ab2189449ddec615e07df1af28810121eafbf1409fad5d5a0932af742049040 mins ago0xff798128adba81c7b596eb21d951e330ac91fabb IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000182612
0x2e674a7dea7468eabe16cd8764d16906ad3a279347cfb33d16e54a6fa468fef074204011 hr ago0x1de0af9e1a739e625e960523a8242791d3796684 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000182612
0x36a0726eb3acade32e92228cc61f7675bd57019e286c41c04d262fe39b7c52fe74203771 hr 5 mins ago0x1153f94b30a5aefe79779efcb7c89a2d0856ef77 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000088316
0x10161a407c10686c673951cd80e32d7b668832cc7d239ae7f99f93926b780a2274203601 hr 10 mins ago0xef8839db25e1bc29698d2c1db70cd6515a9d6500 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000418259468
0x77a9c7003ddf9b1458a70f10a41f44609454c40905b043b6b79baa97746c14dc74203511 hr 13 mins ago0xd31209710c7f1d4b15f5b94614606385bd14ab05 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000044158
0xb248904362695a240e6dbcf04a2c0dd093dda2bca046ce6dc057f3e4715b99d874201801 hr 47 mins ago0x26de2b45cc2348ac4c63eea73b9dc45b1b3ba16b IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000022079
0xcf2f7299fe738d72df6297c6052dbd7f123cb5805b30c1a03ba485af428dcaed74201681 hr 50 mins ago0xff798128adba81c7b596eb21d951e330ac91fabb IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000547836
0xc8af8077879e241ebd16f0d8460c7b3ba92abb43ba9df4f48779d0065a7ec30d74201601 hr 52 mins ago0x362c5e6ddf3ce29eeaec67beae1abb99656f4ef1 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000088316
0x731f406502d335679ab0ab1b3e1d1a58be747d8345495fb27e2726a35fad2d9474199892 hrs 32 mins ago0xdf7b6f184a78bc6a4c40a1dd5477f7f27836d444 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000044158
0xcc0af3f9948f126949bc0119f9c6333913631dae7c587cc85c4e6e9288e5461074199892 hrs 32 mins ago0xfdf43bdb99a55a61e07d8fc4425883e2daeaa014 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000208316
0x3f411ba861e7319bcce069c3aafb270f54b73aa8d35a08beb2f80caff1155e3e74190765 hrs 55 mins ago0x6d286ed2537f3a55d66714f8d1f9dcdad50f3be0 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000111429
0x69b60ca97fc9457531ddf53cbad44ae72f045b2a8f709e0b544e5b89fdd16ce674190496 hrs 1 min ago0xd7edbac0cf9db000420e39a51f6c5033be303a00 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000365224
0xabb29ec921562aa98d475a4daf0b04c8d8d84e56d88cda954d7e96096060b56974190366 hrs 6 mins ago0x6d286ed2537f3a55d66714f8d1f9dcdad50f3be0 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000156621
0xbfed6b15e8e5d15f600f8677fa6a93f75a5d928150b57f7dd796a88e723c956474182159 hrs 11 mins ago0x28a43edd379146aedbcb943c7279a8ecaaeeee70 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000044414
0x4f960b03afce98189e97087fb41469af9bc46b97b7a8c5ffbecf46456cb4d48f741603917 hrs 16 mins ago0x2e8ee00cf33c4529874293d85e8f4f895a2ec174 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000365224
0xde5e1b64b3d35600dd6414010bc08efeb7b548db385e76f9e21ee4d608334e57741477422 hrs 9 mins ago0x08cffd14d132d66f063ea1381e22a2c01ed36989 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000183124
0x7f0f99307311b46d8bcb78e0fb7e2934c91457f6f92c2431fb8d250345f546b7741475322 hrs 13 mins ago0x68ebb63b59aa006c282bbb02e075abbcd6143cfc IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000182612
0xaa868e40d5b216fb78e4d0b1fb6b2d8b9f45c3d03cee18e4338ba2c654a2eb4c74140871 day 42 mins ago0xe8616b6126b5c883fbca685e4af46bd239f9e1c6 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.00007403
0x20ab722d79e999c45a1872a230d140309e80546a1f4579ce65a2f1ea603fd85574135901 day 2 hrs ago0x11313cdf6d74e39f653b6dafe49d06cf0af8a34d IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000228265
0xbe2d64caaddcf37844e520ad095dd174c9325c7cea34f4ead0bd9373cdc4166a74135201 day 2 hrs ago0xb07d7efde2803b0d523ea5aa3eaffabbb227d79c IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000228265
0x619163a706bfb9f91b28140fb54dd367d60a7a979b87763c641cec3c6952e64b74116531 day 9 hrs ago0x28a43edd379146aedbcb943c7279a8ecaaeeee70 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000044414
0xce841f38eff335a19358cbca88af3a297487c55cb90f7180030f39d2217f553a74113481 day 10 hrs ago0x4c41b67f736113b364517760517e7e195c39f713 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000296632
0x8e3e99437db3028801982e682613e3077d38ceb796c138e932e5d3aaeaa795b574109251 day 12 hrs ago0x05abff75d738d8152a4a64cac55350b34c9825a8 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.00045653
0x0f44e9958775a76f906ee441549859d8acb05f5d53a306d68a409868537d559374109171 day 12 hrs ago0xcbd1cb6377f079fe79d7aa4e6f5f0859735bf281 IN  0x5137a403dd25e48de528912a4af62881e625d8010 Ether0.000176632
[ Download CSV Export 

Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)

Contract Name:
HuddlToken

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
No

Runs (Optimizer):
200

Contract Source Code

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 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"}]

Contract Creation Code

60806040523480156200001157600080fd5b5060405162001c6038038062001c608339810180604052810190808051820192919060200180518201929190602001805190602001909291908051906020019092919050505062000071336200010b640100000000026401000000009004565b83600490805190602001906200008992919062000490565b508260059080519060200190620000a292919062000490565b5081600660006101000a81548160ff021916908360ff1602179055506200010133620000ec8460ff16600a0a846200017564010000000002620016a7179091906401000000009004565b620001b7640100000000026401000000009004565b505050506200053f565b6200012f816003620003166401000000000262001548179091906401000000009004565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b60008060008414156200018c5760009150620001b0565b82840290508284828115156200019e57fe5b04141515620001ac57600080fd5b8091505b5092915050565b60008273ffffffffffffffffffffffffffffffffffffffff1614151515620001de57600080fd5b6200020381600254620003d964010000000002620012a1179091906401000000009004565b6002819055506200026a816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054620003d964010000000002620012a1179091906401000000009004565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156200035357600080fd5b6200036e8282620003fb640100000000026401000000009004565b1515156200037b57600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000808284019050838110151515620003f157600080fd5b8091505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156200043957600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004d357805160ff191683800117855562000504565b8280016001018555821562000504579182015b8281111562000503578251825591602001919060010190620004e6565b5b50905062000513919062000517565b5090565b6200053c91905b80821115620005385760008160009055506001016200051e565b5090565b90565b611711806200054f6000396000f3006080604052600436106100db576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100e0578063095ea7b31461017057806318160ddd146101d557806323b872dd14610200578063313ce5671461028557806339509351146102b657806340c10f191461031b57806370a082311461038057806395d89b41146103d7578063983b2d561461046757806398650275146104aa578063a457c2d7146104c1578063a9059cbb14610526578063aa271e1a1461058b578063dd62ed3e146105e6575b600080fd5b3480156100ec57600080fd5b506100f561065d565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561013557808201518184015260208101905061011a565b50505050905090810190601f1680156101625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017c57600080fd5b506101bb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506106ff565b604051808215151515815260200191505060405180910390f35b3480156101e157600080fd5b506101ea61082c565b6040518082815260200191505060405180910390f35b34801561020c57600080fd5b5061026b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610836565b604051808215151515815260200191505060405180910390f35b34801561029157600080fd5b5061029a6109e8565b604051808260ff1660ff16815260200191505060405180910390f35b3480156102c257600080fd5b50610301600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506109ff565b604051808215151515815260200191505060405180910390f35b34801561032757600080fd5b50610366600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610c36565b604051808215151515815260200191505060405180910390f35b34801561038c57600080fd5b506103c1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c60565b6040518082815260200191505060405180910390f35b3480156103e357600080fd5b506103ec610ca8565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561042c578082015181840152602081019050610411565b50505050905090810190601f1680156104595780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561047357600080fd5b506104a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d4a565b005b3480156104b657600080fd5b506104bf610d6a565b005b3480156104cd57600080fd5b5061050c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d75565b604051808215151515815260200191505060405180910390f35b34801561053257600080fd5b50610571600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610fac565b604051808215151515815260200191505060405180910390f35b34801561059757600080fd5b506105cc600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fc3565b604051808215151515815260200191505060405180910390f35b3480156105f257600080fd5b50610647600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fe0565b6040518082815260200191505060405180910390f35b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106f55780601f106106ca576101008083540402835291602001916106f5565b820191906000526020600020905b8154815290600101906020018083116106d857829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561073c57600080fd5b81600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b6000600254905090565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156108c357600080fd5b61095282600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461106790919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109dd848484611088565b600190509392505050565b6000600660009054906101000a900460ff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610a3c57600080fd5b610acb82600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112a190919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000610c4133610fc3565b1515610c4c57600080fd5b610c5683836112c2565b6001905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b610d5333610fc3565b1515610d5e57600080fd5b610d6781611400565b50565b610d733361145a565b565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610db257600080fd5b610e4182600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461106790919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000610fb9338484611088565b6001905092915050565b6000610fd98260036114b490919063ffffffff16565b9050919050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008083831115151561107957600080fd5b82840390508091505092915050565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481111515156110d557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561111157600080fd5b611162816000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461106790919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506111f5816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112a190919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b60008082840190508381101515156112b857600080fd5b8091505092915050565b60008273ffffffffffffffffffffffffffffffffffffffff16141515156112e857600080fd5b6112fd816002546112a190919063ffffffff16565b600281905550611354816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112a190919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b61141481600361154890919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b61146e8160036115f890919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669260405160405180910390a250565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156114f157600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561158457600080fd5b61158e82826114b4565b15151561159a57600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561163457600080fd5b61163e82826114b4565b151561164957600080fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008060008414156116bc57600091506116de565b82840290508284828115156116cd57fe5b041415156116da57600080fd5b8091505b50929150505600a165627a7a72305820b9041394ac31af17d12ea8094b72ba7ede670a5ade36f00f4aebe61e12f32be50029000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000005487564646c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005485544444c000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000005487564646c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005485544444c000000000000000000000000000000000000000000000000000000

-----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 Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.