Contract 0xaa68B1DDc303Fcf39bA0c4cEBC46138293ac9c0c 2

 
Txn Hash Method
Block
From
To
Value
0x3bc95b1dfa41c9bc7c02e2306bf3b3727aa428872399acf74ac4822b2c7666e7Rebase129995312021-08-10 20:10:2876 days 20 hrs agoENS Name route420.eth IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.02717436120
0x8c9976df124fb1078d07671c4b9a71679d1811834a94105321b29524be93712cRebase126098012021-06-10 23:39:02137 days 17 hrs ago0xd0afa12123880d518bee109815a1edfe14ba4faf IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00069058613
0x509b2f2d34d2257a385d99d14346dc4ba694b132062ba61770a341f0dba65fe4Rebase124604822021-05-18 20:11:25160 days 20 hrs ago0xec6eb3d065026e23889a3c40a92839f670dc6ff8 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.02083367692
0xf8010bf6f9b62f6a637ad43b429c089b53de22d7015d183586003c6242545a93Rebase123782142021-05-06 3:02:24173 days 14 hrs ago0x801d47b871b82624fa77f775183f0e6a7c9c2e44 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.0020228840
0x703a5d17e4cc5d65b47db406925f4b8c7bffb23a8e8a525245aebdbb54bcfeffRebase123781892021-05-06 2:56:08173 days 14 hrs ago0x801d47b871b82624fa77f775183f0e6a7c9c2e44 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.0020228840
0xcdbfd68f95650f672620842c70595c689e9e8dce60a545f3abad9304015fb963Rebase122725372021-04-19 20:01:41189 days 21 hrs ago0xace57810549be61779f58a8b66d8725bf8aaff68 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.011633574209.75
0xf4239c170841c8c2db4377cd506d7fdcdec7dfec35cc163e65639b8b9d42cb75Rebase122725372021-04-19 20:01:41189 days 21 hrs agoENS Name route420.eth IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.048880459056214.896
0xcc2c40170709a717db2477e6e069adfc975bac8a2dfe411b53eb438c605f0604Rebase122661642021-04-18 20:08:37190 days 20 hrs agoENS Name route420.eth IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.02956993130
0xe75c858bdd106952993fdc52fcd21bc67135873a07d044aed1903b0871cfc7deRebase121426892021-03-30 20:04:43209 days 20 hrs agoBased.Money: Deployer IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.035270565165
0xa9a973efb4dee0cdd03f2900383e84be858948984238ee53cf608245ebb33f36Rebase119609482021-03-02 20:15:30237 days 20 hrs ago0x9d9a7d6d0c78fea21001d6eb9b3a8ab1202d50ea IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00489086130
0xa749f902536eb1bf49199a55b7c11e3fe5f6ede1845a4d484e130c206774fa6cRebase115639492020-12-31 20:02:15298 days 21 hrs agoENS Name route420.eth IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.01120549911552.42069
0x8a093d38ee4ed865e0c59106a5bba15785a494391e6ce233f32804ee02ecb2abRebase115574712020-12-30 20:07:13299 days 20 hrs agoENS Name route420.eth IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.01206054311556.42069
0x525b02e16f9638efd8cf3e6799fbff2a6013dbdefad27498c6ea7312c65e3c06Rebase115509282020-12-29 20:02:32300 days 21 hrs agoENS Name route420.eth IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.01474950969
0x76d768065f28c6d812f1c62124643d50c835eb3f53ba20df201512646a7c0a0aRebase115445012020-12-28 20:01:04301 days 21 hrs agoENS Name route420.eth IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.01474950969
0x043e4d32df0384751ee477553923026620209b055c534afc5f6347a432f3fc93Rebase115379022020-12-27 20:06:17302 days 20 hrs ago0xf0472503c7a75a447d78cbbc135b258dda148f93 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.0106880550
0x4b606bc3bdeea47ab98caa4f4c4948520cf6033e74eb25242438609edd3b2f93Rebase115248492020-12-25 20:02:03304 days 21 hrs agoENS Name route420.eth IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00861627341
0x68dce368adec265d8914f165ec260eff44d208394d56fa8cb0f2c9445c049e21Rebase115119102020-12-23 20:08:39306 days 20 hrs ago0x4e7e1e6663be18147cc39607572605b9269cbb6f IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.0115534260
0x41845d845fce43e6c7b676307b673fa84f7e6e5cf0a1ec9b0e0253b43de87a59Rebase114922772020-12-20 20:05:03309 days 20 hrs agoENS Name route420.eth IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00149583238
0x13d898968927c1acb1edb8ffc3b4b797d53032bcbb2f4d13027a320cf194bb2dRebase114922762020-12-20 20:05:01309 days 20 hrs ago0xf0472503c7a75a447d78cbbc135b258dda148f93 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.0077022840
0x58ef4ccc2b590d27c4b4ce9b187792d9bf11896007f104128bf6f06fd4178641Rebase114792242020-12-18 20:05:56311 days 20 hrs ago0xec6eb3d065026e23889a3c40a92839f670dc6ff8 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00651530131
0x570c5e63ff6be7793986d550b05b4690b0c61c91e7d1cac7370260e17416a3ffRebase114532392020-12-14 20:19:20315 days 20 hrs ago0xd26c87aea18e783de0c82134d37b43fb68181eb1 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00097817226
0x4c400fefa280ada0e963a0e011ad306b1bcf27f67b1f746beb0306a811d3abfdRebase114467172020-12-13 20:04:54316 days 20 hrs ago0xd26c87aea18e783de0c82134d37b43fb68181eb1 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00672547232
0xe29574e1aafbacf2f861acc9dfa4c82d056d67bcd6e22b0c42504e2f9dad3dc4Rebase114402062020-12-12 20:06:53317 days 20 hrs ago0xd26c87aea18e783de0c82134d37b43fb68181eb1 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00546444626
0x59a220f0efcdf0919b1e541bcb665c33fb991818ab89d0789831ab3eb01b0cfeRebase114336852020-12-11 20:05:14318 days 20 hrs ago0xd26c87aea18e783de0c82134d37b43fb68181eb1 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00735598535
0xba33fcabf30d4658bb54b4a78f8cd3e3f0a98c40e53616fdd8927737e3532f65Rebase114272442020-12-10 20:08:04319 days 20 hrs ago0xd26c87aea18e783de0c82134d37b43fb68181eb1 IN  0xaa68b1ddc303fcf39ba0c4cebc46138293ac9c0c0 Ether0.00638187783730.365168539
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Orchestrator

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-08-18
*/

// Sources flattened with buidler v1.4.3 https://buidler.dev


pragma solidity ^0.4.24;


/**
 * @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;
  }
}



/*
MIT License

Copyright (c) 2018 requestnetwork
Copyright (c) 2018 Fragments, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

pragma solidity 0.4.24;


/**
 * @title SafeMathInt
 * @dev Math operations for int256 with overflow safety checks.
 */
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b)
        internal
        pure
        returns (int256)
    {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b)
        internal
        pure
        returns (int256)
    {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b)
        internal
        pure
        returns (int256)
    {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b)
        internal
        pure
        returns (int256)
    {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a)
        internal
        pure
        returns (int256)
    {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }
}



pragma solidity 0.4.24;


/**
 * @title Various utilities useful for uint256.
 */
library UInt256Lib {

    uint256 private constant MAX_INT256 = ~(uint256(1) << 255);

    /**
     * @dev Safely converts a uint256 to an int256.
     */
    function toInt256Safe(uint256 a)
        internal
        pure
        returns (int256)
    {
        require(a <= MAX_INT256);
        return int256(a);
    }
}



pragma solidity >=0.4.24 <0.6.0;


/**
 * @title Initializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 */
contract Initializable {

  /**
   * @dev Indicates that the contract has been initialized.
   */
  bool private initialized;

  /**
   * @dev Indicates that the contract is in the process of being initialized.
   */
  bool private initializing;

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

    bool wasInitializing = initializing;
    initializing = true;
    initialized = true;

    _;

    initializing = wasInitializing;
  }

  /// @dev Returns true if and only if the function is running in the constructor
  function isConstructor() private view returns (bool) {
    // extcodesize checks the size of the code stored in an address, and
    // address returns the current address. Since the code is still not
    // deployed when running a constructor, any checks on its code size will
    // yield zero, making it an effective way to detect if a contract is
    // under construction or not.
    uint256 cs;
    assembly { cs := extcodesize(address) }
    return cs == 0;
  }

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}



pragma solidity ^0.4.24;


/**
 * @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 is Initializable {
  address private _owner;


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


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function initialize(address sender) internal initializer {
    _owner = sender;
  }

  /**
   * @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 OwnershipRenounced(_owner);
    _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;
  }

  uint256[50] private ______gap;
}



pragma solidity ^0.4.24;


/**
 * @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
  );
}



pragma solidity ^0.4.24;




/**
 * @title ERC20Detailed token
 * @dev The decimals are only for visualization purposes.
 * All the operations are done using the smallest and indivisible token unit,
 * just as on Ethereum all the operations are done in wei.
 */
contract ERC20Detailed is Initializable, IERC20 {
  string private _name;
  string private _symbol;
  uint8 private _decimals;

  function initialize(string name, string symbol, uint8 decimals) internal initializer {
    _name = name;
    _symbol = symbol;
    _decimals = 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;
  }

  uint256[50] private ______gap;
}



pragma solidity 0.4.24;






/**
 * @title uFragments ERC20 token
 * @dev This is part of an implementation of the uFragments Ideal Money protocol.
 *      uFragments is a normal ERC20 token, but its supply can be adjusted by splitting and
 *      combining tokens proportionally across all wallets.
 *
 *      uFragment balances are internally represented with a hidden denomination, 'gons'.
 *      We support splitting the currency in expansion and combining the currency on contraction by
 *      changing the exchange rate between the hidden 'gons' and the public 'fragments'.
 */
contract UFragments is ERC20Detailed, Ownable {
    // PLEASE READ BEFORE CHANGING ANY ACCOUNTING OR MATH
    // Anytime there is division, there is a risk of numerical instability from rounding errors. In
    // order to minimize this risk, we adhere to the following guidelines:
    // 1) The conversion rate adopted is the number of gons that equals 1 fragment.
    //    The inverse rate must not be used--TOTAL_GONS is always the numerator and _totalSupply is
    //    always the denominator. (i.e. If you want to convert gons to fragments instead of
    //    multiplying by the inverse rate, you should divide by the normal rate)
    // 2) Gon balances converted into Fragments are always rounded down (truncated).
    //
    // We make the following guarantees:
    // - If address 'A' transfers x Fragments to address 'B'. A's resulting external balance will
    //   be decreased by precisely x Fragments, and B's external balance will be precisely
    //   increased by x Fragments.
    //
    // We do not guarantee that the sum of all balances equals the result of calling totalSupply().
    // This is because, for any conversion function 'f()' that has non-zero rounding error,
    // f(x0) + f(x1) + ... + f(xn) is not always equal to f(x0 + x1 + ... xn).
    using SafeMath for uint256;
    using SafeMathInt for int256;

    event LogRebase(uint256 indexed epoch, uint256 totalSupply);
    event LogMonetaryPolicyUpdated(address monetaryPolicy);

    // Used for authentication
    address public monetaryPolicy;

    modifier onlyMonetaryPolicy() {
        require(msg.sender == monetaryPolicy);
        _;
    }

    bool private rebasePausedDeprecated;
    bool private tokenPausedDeprecated;

    modifier validRecipient(address to) {
        require(to != address(0x0));
        require(to != address(this));
        _;
    }

    uint256 private constant DECIMALS = 18;
    uint256 private constant MAX_UINT256 = ~uint256(0);
    uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 100000 * uint(10)**DECIMALS;

    // TOTAL_GONS is a multiple of INITIAL_FRAGMENTS_SUPPLY so that _gonsPerFragment is an integer.
    // Use the highest value that fits in a uint256 for max granularity.
    uint256 private constant TOTAL_GONS = MAX_UINT256 - (MAX_UINT256 % INITIAL_FRAGMENTS_SUPPLY);

    // MAX_SUPPLY = maximum integer < (sqrt(4*TOTAL_GONS + 1) - 1) / 2
    uint256 private constant MAX_SUPPLY = ~uint128(0);  // (2^128) - 1

    uint256 private _totalSupply;
    uint256 private _gonsPerFragment;
    mapping(address => uint256) private _gonBalances;

    // This is denominated in Fragments, because the gons-fragments conversion might change before
    // it's fully paid.
    mapping (address => mapping (address => uint256)) private _allowedFragments;

    address public deployer;

    modifier onlyDeployer() {
        require(msg.sender == deployer);
        _;
    }

    constructor () public {
        deployer = msg.sender;
    }
    /**
     * @param monetaryPolicy_ The address of the monetary policy contract to use for authentication.
     */
    function setMonetaryPolicy(address monetaryPolicy_)
        external
        onlyOwner
    {
        monetaryPolicy = monetaryPolicy_;
        emit LogMonetaryPolicyUpdated(monetaryPolicy_);
    }

    /**
     * @dev Notifies Fragments contract about a new rebase cycle.
     * @param supplyDelta The number of new fragment tokens to add into circulation via expansion.
     * @return The total number of fragments after the supply adjustment.
     */
    function rebase(uint256 epoch, int256 supplyDelta)
        external
        onlyMonetaryPolicy
        returns (uint256)
    {
        if (supplyDelta == 0) {
            emit LogRebase(epoch, _totalSupply);
            return _totalSupply;
        }

        if (supplyDelta < 0) {
            _totalSupply = _totalSupply.sub(uint256(supplyDelta.abs()));
        } else {
            _totalSupply = _totalSupply.add(uint256(supplyDelta));
        }

        if (_totalSupply > MAX_SUPPLY) {
            _totalSupply = MAX_SUPPLY;
        }

        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);

        // From this point forward, _gonsPerFragment is taken as the source of truth.
        // We recalculate a new _totalSupply to be in agreement with the _gonsPerFragment
        // conversion rate.
        // This means our applied supplyDelta can deviate from the requested supplyDelta,
        // but this deviation is guaranteed to be < (_totalSupply^2)/(TOTAL_GONS - _totalSupply).
        //
        // In the case of _totalSupply <= MAX_UINT128 (our current supply cap), this
        // deviation is guaranteed to be < 1, so we can omit this step. If the supply cap is
        // ever increased, it must be re-included.
        // _totalSupply = TOTAL_GONS.div(_gonsPerFragment)

        emit LogRebase(epoch, _totalSupply);
        return _totalSupply;
    }

    // deliberately changing function signature to prevent accidental v1 deploy script reuse
    function initialize(string name_, string symbol_, address owner_, address migrator_, address pool1_)
        public
        onlyDeployer
        initializer
    {
        ERC20Detailed.initialize(name_, symbol_, uint8(DECIMALS));
        Ownable.initialize(owner_);

        rebasePausedDeprecated = false;
        tokenPausedDeprecated = false;

        _totalSupply = INITIAL_FRAGMENTS_SUPPLY;
        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);

        uint256 pool1Val = 75000 * (10 ** DECIMALS);
        uint256 pool1Gons = pool1Val.mul(_gonsPerFragment);

        _gonBalances[migrator_] = TOTAL_GONS.sub(pool1Gons);
        _gonBalances[pool1_] = pool1Gons;

        emit Transfer(address(0x0), migrator_, _totalSupply.sub(pool1Val));
        emit Transfer(address(0x0), pool1_, pool1Val);
    }

    /**
     * @return The total number of fragments.
     */
    function totalSupply()
        public
        view
        returns (uint256)
    {
        return _totalSupply;
    }

    /**
     * @param who The address to query.
     * @return The balance of the specified address.
     */
    function balanceOf(address who)
        public
        view
        returns (uint256)
    {
        return _gonBalances[who].div(_gonsPerFragment);
    }

    /**
     * @dev Transfer tokens to a specified address.
     * @param to The address to transfer to.
     * @param value The amount to be transferred.
     * @return True on success, false otherwise.
     */
    function transfer(address to, uint256 value)
        public
        validRecipient(to)
        returns (bool)
    {
        uint256 gonValue = value.mul(_gonsPerFragment);
        _gonBalances[msg.sender] = _gonBalances[msg.sender].sub(gonValue);
        _gonBalances[to] = _gonBalances[to].add(gonValue);
        emit Transfer(msg.sender, to, value);
        return true;
    }

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

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

        uint256 gonValue = value.mul(_gonsPerFragment);
        _gonBalances[from] = _gonBalances[from].sub(gonValue);
        _gonBalances[to] = _gonBalances[to].add(gonValue);
        emit Transfer(from, to, value);

        return true;
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of
     * msg.sender. This method is included for ERC20 compatibility.
     * increaseAllowance and decreaseAllowance should be used instead.
     * Changing an allowance with this method brings the risk that someone may transfer both
     * the old and the new allowance - if they are both greater than zero - if a transfer
     * transaction is mined before the later approve() call is mined.
     *
     * @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)
    {
        _allowedFragments[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    /**
     * @dev Increase the amount of tokens that an owner has allowed to a spender.
     * This method should be used instead of approve() to avoid the double approval vulnerability
     * described above.
     * @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)
    {
        _allowedFragments[msg.sender][spender] =
            _allowedFragments[msg.sender][spender].add(addedValue);
        emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]);
        return true;
    }

    /**
     * @dev Decrease the amount of tokens that an owner has allowed to a spender.
     *
     * @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)
    {
        uint256 oldValue = _allowedFragments[msg.sender][spender];
        if (subtractedValue >= oldValue) {
            _allowedFragments[msg.sender][spender] = 0;
        } else {
            _allowedFragments[msg.sender][spender] = oldValue.sub(subtractedValue);
        }
        emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]);
        return true;
    }
}



pragma solidity 0.4.24;







interface IOracle {
    function getData() external returns (uint256, bool);
}


/**
 * @title uFragments Monetary Supply Policy
 * @dev This is an implementation of the uFragments Ideal Money protocol.
 *      uFragments operates symmetrically on expansion and contraction. It will both split and
 *      combine coins to maintain a stable unit price.
 *
 *      This component regulates the token supply of the uFragments ERC20 token in response to
 *      market oracles.
 */
contract UFragmentsPolicy is Ownable {
    using SafeMath for uint256;
    using SafeMathInt for int256;
    using UInt256Lib for uint256;

    event LogRebase(
        uint256 indexed epoch,
        uint256 exchangeRate,
        int256 requestedSupplyAdjustment,
        uint256 timestampSec
    );

    UFragments public uFrags;

    // Market oracle provides the token/USD exchange rate as an 18 decimal fixed point number.
    // (eg) An oracle value of 1.5e18 it would mean 1 Ample is trading for $1.50.
    IOracle public marketOracle;

    // CPI value at the time of launch, as an 18 decimal fixed point number.
    uint256 private baseCpi;

    // If the current exchange rate is within this fractional distance from the target, no supply
    // update is performed. Fixed point number--same format as the rate.
    // (ie) abs(rate - targetRate) / targetRate < deviationThreshold, then no supply change.
    // DECIMALS Fixed point number.
    uint256 public deviationThreshold;

    // The rebase lag parameter, used to dampen the applied supply adjustment by 1 / rebaseLag
    // Check setRebaseLag comments for more details.
    // Natural number, no decimal places.
    uint256 public rebaseLag;

    // More than this much time must pass between rebase operations.
    uint256 public minRebaseTimeIntervalSec;

    // Block timestamp of last rebase operation
    uint256 public lastRebaseTimestampSec;

    // The rebase window begins this many seconds into the minRebaseTimeInterval period.
    // For example if minRebaseTimeInterval is 24hrs, it represents the time of day in seconds.
    uint256 public rebaseWindowOffsetSec;

    // The length of the time window where a rebase operation is allowed to execute, in seconds.
    uint256 public rebaseWindowLengthSec;

    // The number of rebase cycles since inception
    uint256 public epoch;

    uint256 private constant DECIMALS = 18;

    // Due to the expression in computeSupplyDelta(), MAX_RATE * MAX_SUPPLY must fit into an int256.
    // Both are 18 decimals fixed point numbers.
    uint256 private constant MAX_RATE = 10**6 * 10**DECIMALS;
    // MAX_SUPPLY = MAX_INT256 / MAX_RATE
    uint256 private constant MAX_SUPPLY = ~(uint256(1) << 255) / MAX_RATE;

    // This module orchestrates the rebase execution and downstream notification.
    address public orchestrator;

    address public deployer;

    modifier onlyOrchestrator() {
        require(msg.sender == orchestrator);
        _;
    }

    modifier onlyDeployer() {
        require(msg.sender == deployer);
        _;
    }

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

    /**
     * @notice Initiates a new rebase operation, provided the minimum time period has elapsed.
     *
     * @dev The supply adjustment equals (_totalSupply * DeviationFromTargetRate) / rebaseLag
     *      Where DeviationFromTargetRate is (MarketOracleRate - targetRate) / targetRate
     *      and targetRate is CpiOracleRate / baseCpi
     */
    function rebase() external onlyOrchestrator {
        require(inRebaseWindow());

        // This comparison also ensures there is no reentrancy.
        require(lastRebaseTimestampSec.add(minRebaseTimeIntervalSec) < now);

        // Snap the rebase time to the start of this window.
        lastRebaseTimestampSec = now.sub(
            now.mod(minRebaseTimeIntervalSec)).add(rebaseWindowOffsetSec);

        epoch = epoch.add(1);

        uint256 targetRate = 10 ** DECIMALS;

        uint256 exchangeRate;
        bool rateValid;
        (exchangeRate, rateValid) = marketOracle.getData();
        require(rateValid);

        if (exchangeRate > MAX_RATE) {
            exchangeRate = MAX_RATE;
        }

        int256 supplyDelta = computeSupplyDelta(exchangeRate, targetRate);

        // Apply the Dampening factor.
        supplyDelta = supplyDelta.div(rebaseLag.toInt256Safe());

        if (supplyDelta > 0 && uFrags.totalSupply().add(uint256(supplyDelta)) > MAX_SUPPLY) {
            supplyDelta = (MAX_SUPPLY.sub(uFrags.totalSupply())).toInt256Safe();
        }

        uint256 supplyAfterRebase = uFrags.rebase(epoch, supplyDelta);
        assert(supplyAfterRebase <= MAX_SUPPLY);
        emit LogRebase(epoch, exchangeRate, supplyDelta, now);
    }

    /**
     * @notice Sets the reference to the market oracle.
     * @param marketOracle_ The address of the market oracle contract.
     */
    function setMarketOracle(IOracle marketOracle_)
        external
        onlyDeployer
    {
        // can be set only once
        require(marketOracle == address(0));
        marketOracle = marketOracle_;
    }

    /**
     * @notice Sets the reference to the orchestrator.
     * @param orchestrator_ The address of the orchestrator contract.
     */
    function setOrchestrator(address orchestrator_)
        external
        onlyOwner
    {
        orchestrator = orchestrator_;
    }

    /**
     * @notice Sets the deviation threshold fraction. If the exchange rate given by the market
     *         oracle is within this fractional distance from the targetRate, then no supply
     *         modifications are made. DECIMALS fixed point number.
     * @param deviationThreshold_ The new exchange rate threshold fraction.
     */
    function setDeviationThreshold(uint256 deviationThreshold_)
        external
        onlyOwner
    {
        deviationThreshold = deviationThreshold_;
    }

    /**
     * @notice Sets the rebase lag parameter.
               It is used to dampen the applied supply adjustment by 1 / rebaseLag
               If the rebase lag R, equals 1, the smallest value for R, then the full supply
               correction is applied on each rebase cycle.
               If it is greater than 1, then a correction of 1/R of is applied on each rebase.
     * @param rebaseLag_ The new rebase lag parameter.
     */
    function setRebaseLag(uint256 rebaseLag_)
        external
        onlyOwner
    {
        require(rebaseLag_ > 0);
        rebaseLag = rebaseLag_;
    }

    /**
     * @notice Sets the parameters which control the timing and frequency of
     *         rebase operations.
     *         a) the minimum time period that must elapse between rebase cycles.
     *         b) the rebase window offset parameter.
     *         c) the rebase window length parameter.
     * @param minRebaseTimeIntervalSec_ More than this much time must pass between rebase
     *        operations, in seconds.
     * @param rebaseWindowOffsetSec_ The number of seconds from the beginning of
              the rebase interval, where the rebase window begins.
     * @param rebaseWindowLengthSec_ The length of the rebase window in seconds.
     */
    function setRebaseTimingParameters(
        uint256 minRebaseTimeIntervalSec_,
        uint256 rebaseWindowOffsetSec_,
        uint256 rebaseWindowLengthSec_)
        external
        onlyOwner
    {
        require(minRebaseTimeIntervalSec_ > 0);
        require(rebaseWindowOffsetSec_ < minRebaseTimeIntervalSec_);

        minRebaseTimeIntervalSec = minRebaseTimeIntervalSec_;
        rebaseWindowOffsetSec = rebaseWindowOffsetSec_;
        rebaseWindowLengthSec = rebaseWindowLengthSec_;
    }

    /**
     * @dev ZOS upgradable contract initialization method.
     *      It is called at the time of contract creation to invoke parent class initializers and
     *      initialize the contract's state variables.
     */
    function initialize(address owner_, UFragments uFrags_)
        public
        onlyDeployer
        initializer
    {
        Ownable.initialize(owner_);

        // deviationThreshold = 0.05e18 = 5e16
        deviationThreshold = 5 * 10 ** (DECIMALS-2);

        rebaseLag = 10;
        minRebaseTimeIntervalSec = 1 days;
        rebaseWindowOffsetSec = 72000;  // 8PM UTC
        rebaseWindowLengthSec = 15 minutes;
        lastRebaseTimestampSec = 0;
        epoch = 0;

        uFrags = uFrags_;
    }

    /**
     * @return If the latest block timestamp is within the rebase time window it, returns true.
     *         Otherwise, returns false.
     */
    function inRebaseWindow() public view returns (bool) {
        return (
            now.mod(minRebaseTimeIntervalSec) >= rebaseWindowOffsetSec &&
            now.mod(minRebaseTimeIntervalSec) < (rebaseWindowOffsetSec.add(rebaseWindowLengthSec))
        );
    }

    /**
     * @return Computes the total supply adjustment in response to the exchange rate
     *         and the targetRate.
     */
    function computeSupplyDelta(uint256 rate, uint256 targetRate)
        private
        view
        returns (int256)
    {
        if (withinDeviationThreshold(rate, targetRate)) {
            return 0;
        }

        // supplyDelta = totalSupply * (rate - targetRate) / targetRate
        int256 targetRateSigned = targetRate.toInt256Safe();
        return uFrags.totalSupply().toInt256Safe()
            .mul(rate.toInt256Safe().sub(targetRateSigned))
            .div(targetRateSigned);
    }

    /**
     * @param rate The current exchange rate, an 18 decimal fixed point number.
     * @param targetRate The target exchange rate, an 18 decimal fixed point number.
     * @return If the rate is within the deviation threshold from the target rate, returns true.
     *         Otherwise, returns false.
     */
    function withinDeviationThreshold(uint256 rate, uint256 targetRate)
        private
        view
        returns (bool)
    {
        uint256 absoluteDeviationThreshold = targetRate.mul(deviationThreshold)
            .div(10 ** DECIMALS);

        return (rate >= targetRate && rate.sub(targetRate) < absoluteDeviationThreshold)
            || (rate < targetRate && targetRate.sub(rate) < absoluteDeviationThreshold);
    }
}



pragma solidity 0.4.24;

interface YearnRewardsI {
    function starttime() external returns (uint256);
    function totalRewards() external returns (uint256);
    function y() external returns (address);
}

interface UniV2PairI {
    function sync() external;
}

interface ERC20MigratorI {
    function totalMigrated() external returns (uint256);
}



pragma solidity 0.4.24;






/**
 * @title Orchestrator
 * @notice The orchestrator is the main entry point for rebase operations. It coordinates the policy
 * actions with external consumers.
 */
contract Orchestrator is Ownable {
    using SafeMath for uint256;

    struct Transaction {
        bool enabled;
        address destination;
        bytes data;
    }

    event TransactionFailed(address indexed destination, uint index, bytes data);

    // Stable ordering is not guaranteed.
    Transaction[] public transactions;

    UFragmentsPolicy public policy;
    YearnRewardsI public pool0;
    YearnRewardsI public pool1;
    ERC20Detailed public based;
    ERC20MigratorI public migrator;
    uint256 public rebaseRequiredSupply;
    address public deployer;
    UniV2PairI[3] public uniSyncs;

    uint256 constant SYNC_GAS = 50000;
    address constant uniFactory = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;

    modifier onlyDeployer() {
        require(msg.sender == deployer);
        _;
    }

    // https://uniswap.org/docs/v2/smart-contract-integration/getting-pair-addresses/
    function genUniAddr(address left, address right) internal pure returns (UniV2PairI) {
        address first = left < right ? left : right;
        address second = left < right ? right : left;
        address pair = address(uint(keccak256(abi.encodePacked(
          hex'ff',
          uniFactory,
          keccak256(abi.encodePacked(first, second)),
          hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f'
        ))));
        return UniV2PairI(pair);
    }

    constructor () public {
        deployer = msg.sender;
    }
    /**
     * @param policy_ Address of the UFragments policy.
     * @param pool0_ Address of the YearnRewards pool0.
     * @param pool1_ Address of the YearnRewards pool1.
     * @param based_ Address of the Based token.
     */
    function initialize(
        address policy_,
        address pool0_,
        address pool1_,
        address based_,
        address weth_,
        address synth_sUSD_,
        uint256 rebaseRequiredSupply_,
        address migrator_
    ) public onlyDeployer initializer {
        // only deployer can initialize
        require(deployer == msg.sender);
        Ownable.initialize(msg.sender);

        policy = UFragmentsPolicy(policy_);
        pool0 = YearnRewardsI(pool0_);
        pool1 = YearnRewardsI(pool1_);
        based = ERC20Detailed(based_);
        migrator = ERC20MigratorI(migrator_);

        uniSyncs[0] = genUniAddr(based_, synth_sUSD_);   // BASED/sUSD (synth)
        uniSyncs[1] = genUniAddr(based_, pool0.y());   // BASED/curve sUSD
        uniSyncs[2] = genUniAddr(based_, weth_);       // BASED/WETH

        rebaseRequiredSupply = rebaseRequiredSupply_;
    }

    /**
     * @notice Main entry point to initiate a rebase operation.
     *         The Orchestrator calls rebase on the policy and notifies downstream applications.
     *         Contracts are guarded from calling, to avoid flash loan attacks on liquidity
     *         providers.
     *         If a transaction in the transaction list reverts, it is swallowed and the remaining
     *         transactions are executed.
     */
    function rebase()
        external
    {
        // wait for `rebaseRequiredSupply` token supply to be rewarded until rebase is possible
        // timeout after 4 weeks if people don't claim rewards so it's not stuck
        uint256 rewardsDistributed = migrator.totalMigrated().add(pool1.totalRewards());
        require(rewardsDistributed >= rebaseRequiredSupply || block.timestamp >= pool1.starttime() + 4 weeks);

        require(msg.sender == tx.origin);  // solhint-disable-line avoid-tx-origin

        policy.rebase();

        for (uint i = 0; i < uniSyncs.length; i++) {
            // Swiper no swiping.
            // using low level call to prevent reverts on remote error/non-existence
            address(uniSyncs[i]).call.gas(SYNC_GAS)(uniSyncs[i].sync.selector);
        }
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"policy","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pool1","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rebaseRequiredSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"based","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"migrator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"policy_","type":"address"},{"name":"pool0_","type":"address"},{"name":"pool1_","type":"address"},{"name":"based_","type":"address"},{"name":"weth_","type":"address"},{"name":"synth_sUSD_","type":"address"},{"name":"rebaseRequiredSupply_","type":"uint256"},{"name":"migrator_","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"transactions","outputs":[{"name":"enabled","type":"bool"},{"name":"destination","type":"address"},{"name":"data","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"rebase","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"pool0","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"deployer","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"uniSyncs","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"destination","type":"address"},{"indexed":false,"name":"index","type":"uint256"},{"indexed":false,"name":"data","type":"bytes"}],"name":"TransactionFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

608060405234801561001057600080fd5b5033606d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611916806100616000396000f3006080604052600436106100db576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630505c8c9146100e057806305ea3ed5146101375780633d24d2351461018e5780635ab673b1146101b9578063715018a6146102105780637cd07e47146102275780638da5cb5b1461027e5780638e659c08146102d55780638f32d59b146103e25780639ace38c214610411578063af14052c146104f5578063c81533a41461050c578063d5f3948814610563578063e11f5668146105ba578063f2fde38b14610627575b600080fd5b3480156100ec57600080fd5b506100f561066a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561014357600080fd5b5061014c610690565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561019a57600080fd5b506101a36106b6565b6040518082815260200191505060405180910390f35b3480156101c557600080fd5b506101ce6106bc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561021c57600080fd5b506102256106e2565b005b34801561023357600080fd5b5061023c61079e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561028a57600080fd5b506102936107c4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102e157600080fd5b506103e0600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107ee565b005b3480156103ee57600080fd5b506103f7610d03565b604051808215151515815260200191505060405180910390f35b34801561041d57600080fd5b5061043c60048036038101908080359060200190929190505050610d5b565b60405180841515151581526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b838110156104b857808201518184015260208101905061049d565b50505050905090810190601f1680156104e55780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b34801561050157600080fd5b5061050a610e59565b005b34801561051857600080fd5b506105216112e3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561056f57600080fd5b50610578611309565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156105c657600080fd5b506105e56004803603810190808035906020019092919050505061132f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561063357600080fd5b50610668600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611364565b005b606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606c5481565b606a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6106ea610d03565b15156106f557600080fd5b603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b606b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561084a57600080fd5b60008060019054906101000a900460ff168061086a5750610869611383565b5b8061088157506000809054906101000a900460ff16155b151561091b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001807f436f6e747261637420696e7374616e63652068617320616c726561647920626581526020017f656e20696e697469616c697a656400000000000000000000000000000000000081525060400191505060405180910390fd5b600060019054906101000a900460ff1690506001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff16606d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156109be57600080fd5b6109c733611394565b88606760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555087606860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085606a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081606b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610b16868561150b565b606e6000600381101515610b2657fe5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610c2f86606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a56dfe4a6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610bef57600080fd5b505af1158015610c03573d6000803e3d6000fd5b505050506040513d6020811015610c1957600080fd5b810190808051906020019092919050505061150b565b606e6001600381101515610c3f57fe5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610c88868661150b565b606e6002600381101515610c9857fe5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082606c8190555080600060016101000a81548160ff021916908315150217905550505050505050505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b606681815481101515610d6a57fe5b90600052602060002090600202016000915090508060000160009054906101000a900460ff16908060000160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806001018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e4f5780601f10610e2457610100808354040283529160200191610e4f565b820191906000526020600020905b815481529060010190602001808311610e3257829003601f168201915b5050505050905083565b600080610fef606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630e15561a6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610ee557600080fd5b505af1158015610ef9573d6000803e3d6000fd5b505050506040513d6020811015610f0f57600080fd5b8101908080519060200190929190505050606b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166395a0f5eb6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610fa657600080fd5b505af1158015610fba573d6000803e3d6000fd5b505050506040513d6020811015610fd057600080fd5b81019080805190602001909291905050506117cd90919063ffffffff16565b9150606c54821015806110c757506224ea00606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da588976040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561108757600080fd5b505af115801561109b573d6000803e3d6000fd5b505050506040513d60208110156110b157600080fd5b8101908080519060200190929190505050014210155b15156110d257600080fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561110c57600080fd5b606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663af14052c6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15801561119257600080fd5b505af11580156111a6573d6000803e3d6000fd5b50505050600090505b60038110156112df57606e816003811015156111c757fe5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661c350606e8360038110151561121157fe5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fff6cae990507c0100000000000000000000000000000000000000000000000000000000027c01000000000000000000000000000000000000000000000000000000009004906040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160006040518083038160008887f193505050505080806001019150506111af565b5050565b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606e8160038110151561133e57fe5b016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61136c610d03565b151561137757600080fd5b611380816117ee565b50565b600080303b90506000811491505090565b60008060019054906101000a900460ff16806113b457506113b3611383565b5b806113cb57506000809054906101000a900460ff16155b1515611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001807f436f6e747261637420696e7374616e63652068617320616c726561647920626581526020017f656e20696e697469616c697a656400000000000000000000000000000000000081525060400191505060405180910390fd5b600060019054906101000a900460ff1690506001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff02191690831515021790555081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548160ff0219169083151502179055505050565b6000806000808473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161061154a578461154c565b855b92508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16106115875785611589565b845b9150735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8383604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401925050506040516020818303038152906040526040518082805190602001908083835b602083101515611673578051825260208201915060208101905060208303925061164e565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018260001916600019168152602001807f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f815250602001925050506040516020818303038152906040526040518082805190602001908083835b60208310151561178e5780518252602082019150602081019050602083039250611769565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004905080935050505092915050565b60008082840190508381101515156117e457600080fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561182a57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820a695b7c99d6edfaede0f1d43c73c8c11f8609ca712f298d88fc931c1bb5832230029

Deployed ByteCode Sourcemap

33683:3929:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34037:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34037:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;34107:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34107:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;34210:35;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34210:35:0;;;;;;;;;;;;;;;;;;;;;;;34140:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34140:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;8675:116;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8675:116:0;;;;;;34173:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34173:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;8016:72;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8016:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;35431:913;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35431:913:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8318:85;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8318:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;33995:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33995:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;33995:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36796:813;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36796:813:0;;;;;;34074:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34074:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;34252:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34252:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;34282:29;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34282:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8958:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8958:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;34037:30;;;;;;;;;;;;;:::o;34107:26::-;;;;;;;;;;;;;:::o;34210:35::-;;;;:::o;34140:26::-;;;;;;;;;;;;;:::o;8675:116::-;8209:9;:7;:9::i;:::-;8201:18;;;;;;;;8752:6;;;;;;;;;;;8733:26;;;;;;;;;;;;8783:1;8766:6;;:19;;;;;;;;;;;;;;;;;;8675:116::o;34173:30::-;;;;;;;;;;;;;:::o;8016:72::-;8053:7;8076:6;;;;;;;;;;;8069:13;;8016:72;:::o;35431:913::-;34498:8;;;;;;;;;;;34484:22;;:10;:22;;;34476:31;;;;;;;;6464:20;6357:12;;;;;;;;;;;:31;;;;6373:15;:13;:15::i;:::-;6357:31;:47;;;;6393:11;;;;;;;;;;;6392:12;6357:47;6349:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6487:12;;;;;;;;;;;6464:35;;6521:4;6506:12;;:19;;;;;;;;;;;;;;;;;;6546:4;6532:11;;:18;;;;;;;;;;;;;;;;;;35785:10;35773:22;;:8;;;;;;;;;;;:22;;;35765:31;;;;;;;;35807:30;35826:10;35807:18;:30::i;:::-;35876:7;35850:6;;:34;;;;;;;;;;;;;;;;;;35917:6;35895:5;;:29;;;;;;;;;;;;;;;;;;35957:6;35935:5;;:29;;;;;;;;;;;;;;;;;;35997:6;35975:5;;:29;;;;;;;;;;;;;;;;;;36041:9;36015:8;;:36;;;;;;;;;;;;;;;;;;36078:31;36089:6;36097:11;36078:10;:31::i;:::-;36064:8;36073:1;36064:11;;;;;;;;;;;:45;;;;;;;;;;;;;;;;;;36158:29;36169:6;36177:5;;;;;;;;;;;:7;;;:9;;;;;;;;;;;;;;;;;;;;;;;8::-1;5:2;;;30:1;27;20:12;5:2;36177:9:0;;;;8::-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36177:9:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;36177:9:0;;;;;;;;;;;;;;;;36158:10;:29::i;:::-;36144:8;36153:1;36144:11;;;;;;;;;;;:43;;;;;;;;;;;;;;;;;;36234:25;36245:6;36253:5;36234:10;:25::i;:::-;36220:8;36229:1;36220:11;;;;;;;;;;;:39;;;;;;;;;;;;;;;;;;36315:21;36292:20;:44;;;;6584:15;6569:12;;:30;;;;;;;;;;;;;;;;;;34518:1;35431:913;;;;;;;;:::o;8318:85::-;8357:4;8391:6;;;;;;;;;;;8377:20;;:10;:20;;;8370:27;;8318:85;:::o;33995:33::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;36796:813::-;37027:26;37350:6;37056:50;37085:5;;;;;;;;;;;:18;;;:20;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37085:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37085:20:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37085:20:0;;;;;;;;;;;;;;;;37056:8;;;;;;;;;;;:22;;;:24;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37056:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37056:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37056:24:0;;;;;;;;;;;;;;;;:28;;:50;;;;:::i;:::-;37027:79;;37147:20;;37125:18;:42;;:92;;;;37210:7;37190:5;;;;;;;;;;;:15;;;:17;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37190:17:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37190:17:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37190:17:0;;;;;;;;;;;;;;;;:27;37171:15;:46;;37125:92;37117:101;;;;;;;;37253:9;37239:23;;:10;:23;;;37231:32;;;;;;;;37317:6;;;;;;;;;;;:13;;;:15;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37317:15:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37317:15:0;;;;37359:1;37350:10;;37345:257;37366:15;37362:1;:19;37345:257;;;37532:8;37541:1;37532:11;;;;;;;;;;;;;;;;;;;;37524:25;;34348:5;37564:8;37573:1;37564:11;;;;;;;;;;;;;;;;;;;;:16;;;:25;;;;37524:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37383:3;;;;;;;37345:257;;;36796:813;;:::o;34074:26::-;;;;;;;;;;;;;:::o;34252:23::-;;;;;;;;;;;;;:::o;34282:29::-;;;;;;;;;;;;;;;;;;;;;;;;;:::o;8958:103::-;8209:9;:7;:9::i;:::-;8201:18;;;;;;;;9027:28;9046:8;9027:18;:28::i;:::-;8958:103;:::o;6694:476::-;6741:4;7088:10;7134:7;7122:20;7116:26;;7163:1;7157:2;:7;7150:14;;6694:476;;:::o;7871:85::-;6464:20;6357:12;;;;;;;;;;;:31;;;;6373:15;:13;:15::i;:::-;6357:31;:47;;;;6393:11;;;;;;;;;;;6392:12;6357:47;6349:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6487:12;;;;;;;;;;;6464:35;;6521:4;6506:12;;:19;;;;;;;;;;;;;;;;;;6546:4;6532:11;;:18;;;;;;;;;;;;;;;;;;7944:6;7935;;:15;;;;;;;;;;;;;;;;;;6584;6569:12;;:30;;;;;;;;;;;;;;;;;;7871:85;;:::o;34622:494::-;34694:10;34717:13;34771:14;34826:12;34740:5;34733:12;;:4;:12;;;:27;;34755:5;34733:27;;;34748:4;34733:27;34717:43;;34795:5;34788:12;;:4;:12;;;:27;;34811:4;34788:27;;;34803:5;34788:27;34771:44;;34390:42;34963:5;34970:6;34946:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;34946:31:0;;;34936:42;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;34936:42:0;;;;;;;;;;;;;;;;34864:207;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;34864:207:0;;;34854:218;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;34854:218:0;;;;;;;;;;;;;;;;34849:224;;;34826:248;;35103:4;35085:23;;34622:494;;;;;;;:::o;1389:136::-;1447:7;1463:9;1479:1;1475;:5;1463:17;;1500:1;1495;:6;;1487:15;;;;;;;;1518:1;1511:8;;1389:136;;;;;:::o;9201:173::-;9291:1;9271:22;;:8;:22;;;;9263:31;;;;;;;;9335:8;9306:38;;9327:6;;;;;;;;;;;9306:38;;;;;;;;;;;;9360:8;9351:6;;:17;;;;;;;;;;;;;;;;;;9201:173;:::o

Swarm Source

bzzr://a695b7c99d6edfaede0f1d43c73c8c11f8609ca712f298d88fc931c1bb583223
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.