Contract 0x9ac140F489Df1481C20FeB318f09b29A4f744915

Contract Overview

Balance:
0 Ether
Txn Hash
Method
Block
From
To
Value
0x13699d37fa08ed2af136bf2fdebec6f42cdcae6028b34da95788ec10f2b4ab450x60c0604052320272019-10-09 11:10:351001 days 7 hrs ago0x9b1b224e0445243ef5fd102114d15136967ffb15 IN  Contract Creation0 Ether0.007434772
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x00d0645eb0661f57f0b5c3a090fd34c07df2e479f87b3257464fe4e635b48e8f106066582022-05-02 15:19:0365 days 3 hrs ago 0x9c6cbdeb80a9bc7a96de768306441bf2b2218f55 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x44b8aa510572074a4e6e2525a07bee25787fd4c136ab2bf1c825a090653cd1cd102926362022-03-08 11:22:26120 days 7 hrs ago 0xf62224ac5d729073b20492074dfe634079ece2b0 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x26ff24670be520eed096a393fbe5623470ac4a2a2c59ec652d24b49559cdd15e102926012022-03-08 11:13:41120 days 7 hrs ago 0xf62224ac5d729073b20492074dfe634079ece2b0 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x2193cb8ebab3e6ecc8c9b3e5285cfd88802a177236f8d20e432fe00984d50a3695370552021-10-27 6:26:35252 days 12 hrs ago 0x5935dc2d6df3c00ec048f70294111967f336e638 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x69ad8388fbc386c822824599d51adb9671408ad0522c2d3232e6349732ab498e95323992021-10-26 11:01:19253 days 7 hrs ago 0x5935dc2d6df3c00ec048f70294111967f336e638 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x2003f33b407bb1949c1d5bbc595e7b73dae86c300cf8fa6e2e556683e24932a795323202021-10-26 10:41:33253 days 7 hrs ago 0x5935dc2d6df3c00ec048f70294111967f336e638 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x17ce2ed11ccc4c9f94afcbd0c5d05277104548d23927a4e4149236744b09d64593842992021-09-30 17:08:21279 days 1 hr ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0xf4ef60c9cd4d49144b8897318ac476827256a695e83cc2f4e9a75a36af0859a093598022021-09-26 10:58:21283 days 7 hrs ago 0xb879fa39ee3c886e9aa0580867cecb2c83781271 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x16d993bcbfa84122c70626b70d8f95c5a88f76cf46798ab804ae051e4ab576f193597732021-09-26 10:51:06283 days 7 hrs ago 0xb879fa39ee3c886e9aa0580867cecb2c83781271 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x43ea9c28a4352439864ce9f8d6753eb61c276a6422f598241b599717b91581d393597542021-09-26 10:46:20283 days 7 hrs ago 0xb879fa39ee3c886e9aa0580867cecb2c83781271 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0xe15e97b04bd1b531c3e6174b3c6ba468c372913738e6ed35bdf13ebc34a966de93597522021-09-26 10:45:50283 days 7 hrs ago 0xb879fa39ee3c886e9aa0580867cecb2c83781271 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x408fb81cc332fe42de7b9cf305801be9f59117249ca4f00d33f09a00ee4026a593597452021-09-26 10:44:05283 days 7 hrs ago 0xb879fa39ee3c886e9aa0580867cecb2c83781271 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0xaaf43a62f8b618c37a068a870f471d9dc4c7a941d29b89614a54145017d6377293597452021-09-26 10:44:05283 days 7 hrs ago 0xb879fa39ee3c886e9aa0580867cecb2c83781271 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x4d1f7df24bacce6ee15b2f8c682a14bead2c035c0b8a65d69a0f2bb52b4df89093523212021-09-25 3:42:55284 days 14 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0xa1b9090b173318531823c8b66c3b881dc00548b3aeb303844b20c4588eededb093495652021-09-24 16:09:48285 days 2 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0xc0d1446f91f297bfb3664bf5ef9d3d7e4e41ac928acdc0f19ed77d7fb213126d93489152021-09-24 13:26:30285 days 5 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x4124404bf6ed6fbc6207b638298d19857373ab8f7038d6714856e3043ad5666493486242021-09-24 12:13:41285 days 6 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x4122f480373feec36aa7e17542184bd942d407bb6dd592b07319898be156308b93482112021-09-24 10:30:18285 days 8 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0xea902409c91a171a7cc1dac8b3bae8d8cdb15a91f57612ca7ba4612d74d12d5093481782021-09-24 10:22:01285 days 8 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0xa9a105944bf2b2079c982ed4bded5d39c22e830ce90b797dcaee6f4400bd5a6893481692021-09-24 10:19:46285 days 8 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0xb1b158be6185ea7292182b6a64ed77b61b1dfd1eae624dc5a54b39337f8c021f93481532021-09-24 10:15:46285 days 8 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x32c8ba5c341474da6b32b3746bbd1de70faf074b0ea5dc6bf07f2f841464456e93481392021-09-24 10:12:16285 days 8 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x13dab0aa1d39221cbe9f5976eecf146b3696a5d539fa1ddfb517c308cf9ce97993481082021-09-24 10:04:29285 days 8 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0xeb67fe194a429f736dd2b71b2f245da8561e83054466d354bf1984bb10f409aa93479822021-09-24 9:32:59285 days 8 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
0x283c2f5e145af8e605872ca585e04c16f047ee578d3e899d7b795908c45d70cc93471122021-09-24 5:55:13285 days 12 hrs ago 0x2d62781c61f60333cd747395b07959415e2c7baa 0x9ac140f489df1481c20feb318f09b29a4f7449150 Ether
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x7151923bb73cbac7c2b0764166f06a2d192fd952

Contract Name:
BancorFormula

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, GNU AGPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2021-11-17
*/

// File: contracts/interfaces/IBancorFormula.sol

pragma solidity 0.4.24;

/*
    Bancor Formula interface
*/
contract IBancorFormula {
    function calculatePurchaseReturn(uint256 _supply, uint256 _connectorBalance, uint32 _connectorWeight, uint256 _depositAmount) public view returns (uint256);
    function calculateSaleReturn(uint256 _supply, uint256 _connectorBalance, uint32 _connectorWeight, uint256 _sellAmount) public view returns (uint256);
    function calculateCrossConnectorReturn(uint256 _fromConnectorBalance, uint32 _fromConnectorWeight, uint256 _toConnectorBalance, uint32 _toConnectorWeight, uint256 _amount) public view returns (uint256);
}

// File: @aragon/os/contracts/lib/math/SafeMath.sol

// See https://github.com/OpenZeppelin/openzeppelin-solidity/blob/d51e38758e1d985661534534d5c61e27bece5042/contracts/math/SafeMath.sol
// Adapted to use pragma ^0.4.24 and satisfy our linter rules

pragma solidity ^0.4.24;


/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert on error
 */
library SafeMath {
    string private constant ERROR_ADD_OVERFLOW = "MATH_ADD_OVERFLOW";
    string private constant ERROR_SUB_UNDERFLOW = "MATH_SUB_UNDERFLOW";
    string private constant ERROR_MUL_OVERFLOW = "MATH_MUL_OVERFLOW";
    string private constant ERROR_DIV_ZERO = "MATH_DIV_ZERO";

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

        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, ERROR_DIV_ZERO); // 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, ERROR_SUB_UNDERFLOW);
        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, ERROR_ADD_OVERFLOW);

        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, ERROR_DIV_ZERO);
        return a % b;
    }
}

// File: contracts/utility/Utils.sol

pragma solidity 0.4.24;

/*
    Utilities & Common Modifiers
*/
contract Utils {
    /**
        constructor
    */
    constructor() public {
    }

    // verifies that an amount is greater than zero
    modifier greaterThanZero(uint256 _amount) {
        require(_amount > 0);
        _;
    }

    // validates an address - currently only checks that it isn't null
    modifier validAddress(address _address) {
        require(_address != address(0));
        _;
    }

    // verifies that the address is different than this contract address
    modifier notThis(address _address) {
        require(_address != address(this));
        _;
    }

}

// File: contracts/BancorFormula.sol

pragma solidity 0.4.24;




contract BancorFormula is IBancorFormula, Utils {
    using SafeMath for uint256;


    string public version = '0.3';

    uint256 private constant ONE = 1;
    uint32 private constant MAX_WEIGHT = 1000000;
    uint8 private constant MIN_PRECISION = 32;
    uint8 private constant MAX_PRECISION = 127;

    /**
        Auto-generated via 'PrintIntScalingFactors.py'
    */
    uint256 private constant FIXED_1 = 0x080000000000000000000000000000000;
    uint256 private constant FIXED_2 = 0x100000000000000000000000000000000;
    uint256 private constant MAX_NUM = 0x200000000000000000000000000000000;

    /**
        Auto-generated via 'PrintLn2ScalingFactors.py'
    */
    uint256 private constant LN2_NUMERATOR   = 0x3f80fe03f80fe03f80fe03f80fe03f8;
    uint256 private constant LN2_DENOMINATOR = 0x5b9de1d10bf4103d647b0955897ba80;

    /**
        Auto-generated via 'PrintFunctionOptimalLog.py' and 'PrintFunctionOptimalExp.py'
    */
    uint256 private constant OPT_LOG_MAX_VAL = 0x15bf0a8b1457695355fb8ac404e7a79e3;
    uint256 private constant OPT_EXP_MAX_VAL = 0x800000000000000000000000000000000;

    /**
        Auto-generated via 'PrintFunctionConstructor.py'
    */
    uint256[128] private maxExpArray;
    constructor() public {
    //  maxExpArray[  0] = 0x6bffffffffffffffffffffffffffffffff;
    //  maxExpArray[  1] = 0x67ffffffffffffffffffffffffffffffff;
    //  maxExpArray[  2] = 0x637fffffffffffffffffffffffffffffff;
    //  maxExpArray[  3] = 0x5f6fffffffffffffffffffffffffffffff;
    //  maxExpArray[  4] = 0x5b77ffffffffffffffffffffffffffffff;
    //  maxExpArray[  5] = 0x57b3ffffffffffffffffffffffffffffff;
    //  maxExpArray[  6] = 0x5419ffffffffffffffffffffffffffffff;
    //  maxExpArray[  7] = 0x50a2ffffffffffffffffffffffffffffff;
    //  maxExpArray[  8] = 0x4d517fffffffffffffffffffffffffffff;
    //  maxExpArray[  9] = 0x4a233fffffffffffffffffffffffffffff;
    //  maxExpArray[ 10] = 0x47165fffffffffffffffffffffffffffff;
    //  maxExpArray[ 11] = 0x4429afffffffffffffffffffffffffffff;
    //  maxExpArray[ 12] = 0x415bc7ffffffffffffffffffffffffffff;
    //  maxExpArray[ 13] = 0x3eab73ffffffffffffffffffffffffffff;
    //  maxExpArray[ 14] = 0x3c1771ffffffffffffffffffffffffffff;
    //  maxExpArray[ 15] = 0x399e96ffffffffffffffffffffffffffff;
    //  maxExpArray[ 16] = 0x373fc47fffffffffffffffffffffffffff;
    //  maxExpArray[ 17] = 0x34f9e8ffffffffffffffffffffffffffff;
    //  maxExpArray[ 18] = 0x32cbfd5fffffffffffffffffffffffffff;
    //  maxExpArray[ 19] = 0x30b5057fffffffffffffffffffffffffff;
    //  maxExpArray[ 20] = 0x2eb40f9fffffffffffffffffffffffffff;
    //  maxExpArray[ 21] = 0x2cc8340fffffffffffffffffffffffffff;
    //  maxExpArray[ 22] = 0x2af09481ffffffffffffffffffffffffff;
    //  maxExpArray[ 23] = 0x292c5bddffffffffffffffffffffffffff;
    //  maxExpArray[ 24] = 0x277abdcdffffffffffffffffffffffffff;
    //  maxExpArray[ 25] = 0x25daf6657fffffffffffffffffffffffff;
    //  maxExpArray[ 26] = 0x244c49c65fffffffffffffffffffffffff;
    //  maxExpArray[ 27] = 0x22ce03cd5fffffffffffffffffffffffff;
    //  maxExpArray[ 28] = 0x215f77c047ffffffffffffffffffffffff;
    //  maxExpArray[ 29] = 0x1fffffffffffffffffffffffffffffffff;
    //  maxExpArray[ 30] = 0x1eaefdbdabffffffffffffffffffffffff;
    //  maxExpArray[ 31] = 0x1d6bd8b2ebffffffffffffffffffffffff;
        maxExpArray[ 32] = 0x1c35fedd14ffffffffffffffffffffffff;
        maxExpArray[ 33] = 0x1b0ce43b323fffffffffffffffffffffff;
        maxExpArray[ 34] = 0x19f0028ec1ffffffffffffffffffffffff;
        maxExpArray[ 35] = 0x18ded91f0e7fffffffffffffffffffffff;
        maxExpArray[ 36] = 0x17d8ec7f0417ffffffffffffffffffffff;
        maxExpArray[ 37] = 0x16ddc6556cdbffffffffffffffffffffff;
        maxExpArray[ 38] = 0x15ecf52776a1ffffffffffffffffffffff;
        maxExpArray[ 39] = 0x15060c256cb2ffffffffffffffffffffff;
        maxExpArray[ 40] = 0x1428a2f98d72ffffffffffffffffffffff;
        maxExpArray[ 41] = 0x13545598e5c23fffffffffffffffffffff;
        maxExpArray[ 42] = 0x1288c4161ce1dfffffffffffffffffffff;
        maxExpArray[ 43] = 0x11c592761c666fffffffffffffffffffff;
        maxExpArray[ 44] = 0x110a688680a757ffffffffffffffffffff;
        maxExpArray[ 45] = 0x1056f1b5bedf77ffffffffffffffffffff;
        maxExpArray[ 46] = 0x0faadceceeff8bffffffffffffffffffff;
        maxExpArray[ 47] = 0x0f05dc6b27edadffffffffffffffffffff;
        maxExpArray[ 48] = 0x0e67a5a25da4107fffffffffffffffffff;
        maxExpArray[ 49] = 0x0dcff115b14eedffffffffffffffffffff;
        maxExpArray[ 50] = 0x0d3e7a392431239fffffffffffffffffff;
        maxExpArray[ 51] = 0x0cb2ff529eb71e4fffffffffffffffffff;
        maxExpArray[ 52] = 0x0c2d415c3db974afffffffffffffffffff;
        maxExpArray[ 53] = 0x0bad03e7d883f69bffffffffffffffffff;
        maxExpArray[ 54] = 0x0b320d03b2c343d5ffffffffffffffffff;
        maxExpArray[ 55] = 0x0abc25204e02828dffffffffffffffffff;
        maxExpArray[ 56] = 0x0a4b16f74ee4bb207fffffffffffffffff;
        maxExpArray[ 57] = 0x09deaf736ac1f569ffffffffffffffffff;
        maxExpArray[ 58] = 0x0976bd9952c7aa957fffffffffffffffff;
        maxExpArray[ 59] = 0x09131271922eaa606fffffffffffffffff;
        maxExpArray[ 60] = 0x08b380f3558668c46fffffffffffffffff;
        maxExpArray[ 61] = 0x0857ddf0117efa215bffffffffffffffff;
        maxExpArray[ 62] = 0x07ffffffffffffffffffffffffffffffff;
        maxExpArray[ 63] = 0x07abbf6f6abb9d087fffffffffffffffff;
        maxExpArray[ 64] = 0x075af62cbac95f7dfa7fffffffffffffff;
        maxExpArray[ 65] = 0x070d7fb7452e187ac13fffffffffffffff;
        maxExpArray[ 66] = 0x06c3390ecc8af379295fffffffffffffff;
        maxExpArray[ 67] = 0x067c00a3b07ffc01fd6fffffffffffffff;
        maxExpArray[ 68] = 0x0637b647c39cbb9d3d27ffffffffffffff;
        maxExpArray[ 69] = 0x05f63b1fc104dbd39587ffffffffffffff;
        maxExpArray[ 70] = 0x05b771955b36e12f7235ffffffffffffff;
        maxExpArray[ 71] = 0x057b3d49dda84556d6f6ffffffffffffff;
        maxExpArray[ 72] = 0x054183095b2c8ececf30ffffffffffffff;
        maxExpArray[ 73] = 0x050a28be635ca2b888f77fffffffffffff;
        maxExpArray[ 74] = 0x04d5156639708c9db33c3fffffffffffff;
        maxExpArray[ 75] = 0x04a23105873875bd52dfdfffffffffffff;
        maxExpArray[ 76] = 0x0471649d87199aa990756fffffffffffff;
        maxExpArray[ 77] = 0x04429a21a029d4c1457cfbffffffffffff;
        maxExpArray[ 78] = 0x0415bc6d6fb7dd71af2cb3ffffffffffff;
        maxExpArray[ 79] = 0x03eab73b3bbfe282243ce1ffffffffffff;
        maxExpArray[ 80] = 0x03c1771ac9fb6b4c18e229ffffffffffff;
        maxExpArray[ 81] = 0x0399e96897690418f785257fffffffffff;
        maxExpArray[ 82] = 0x0373fc456c53bb779bf0ea9fffffffffff;
        maxExpArray[ 83] = 0x034f9e8e490c48e67e6ab8bfffffffffff;
        maxExpArray[ 84] = 0x032cbfd4a7adc790560b3337ffffffffff;
        maxExpArray[ 85] = 0x030b50570f6e5d2acca94613ffffffffff;
        maxExpArray[ 86] = 0x02eb40f9f620fda6b56c2861ffffffffff;
        maxExpArray[ 87] = 0x02cc8340ecb0d0f520a6af58ffffffffff;
        maxExpArray[ 88] = 0x02af09481380a0a35cf1ba02ffffffffff;
        maxExpArray[ 89] = 0x0292c5bdd3b92ec810287b1b3fffffffff;
        maxExpArray[ 90] = 0x0277abdcdab07d5a77ac6d6b9fffffffff;
        maxExpArray[ 91] = 0x025daf6654b1eaa55fd64df5efffffffff;
        maxExpArray[ 92] = 0x0244c49c648baa98192dce88b7ffffffff;
        maxExpArray[ 93] = 0x022ce03cd5619a311b2471268bffffffff;
        maxExpArray[ 94] = 0x0215f77c045fbe885654a44a0fffffffff;
        maxExpArray[ 95] = 0x01ffffffffffffffffffffffffffffffff;
        maxExpArray[ 96] = 0x01eaefdbdaaee7421fc4d3ede5ffffffff;
        maxExpArray[ 97] = 0x01d6bd8b2eb257df7e8ca57b09bfffffff;
        maxExpArray[ 98] = 0x01c35fedd14b861eb0443f7f133fffffff;
        maxExpArray[ 99] = 0x01b0ce43b322bcde4a56e8ada5afffffff;
        maxExpArray[100] = 0x019f0028ec1fff007f5a195a39dfffffff;
        maxExpArray[101] = 0x018ded91f0e72ee74f49b15ba527ffffff;
        maxExpArray[102] = 0x017d8ec7f04136f4e5615fd41a63ffffff;
        maxExpArray[103] = 0x016ddc6556cdb84bdc8d12d22e6fffffff;
        maxExpArray[104] = 0x015ecf52776a1155b5bd8395814f7fffff;
        maxExpArray[105] = 0x015060c256cb23b3b3cc3754cf40ffffff;
        maxExpArray[106] = 0x01428a2f98d728ae223ddab715be3fffff;
        maxExpArray[107] = 0x013545598e5c23276ccf0ede68034fffff;
        maxExpArray[108] = 0x01288c4161ce1d6f54b7f61081194fffff;
        maxExpArray[109] = 0x011c592761c666aa641d5a01a40f17ffff;
        maxExpArray[110] = 0x0110a688680a7530515f3e6e6cfdcdffff;
        maxExpArray[111] = 0x01056f1b5bedf75c6bcb2ce8aed428ffff;
        maxExpArray[112] = 0x00faadceceeff8a0890f3875f008277fff;
        maxExpArray[113] = 0x00f05dc6b27edad306388a600f6ba0bfff;
        maxExpArray[114] = 0x00e67a5a25da41063de1495d5b18cdbfff;
        maxExpArray[115] = 0x00dcff115b14eedde6fc3aa5353f2e4fff;
        maxExpArray[116] = 0x00d3e7a3924312399f9aae2e0f868f8fff;
        maxExpArray[117] = 0x00cb2ff529eb71e41582cccd5a1ee26fff;
        maxExpArray[118] = 0x00c2d415c3db974ab32a51840c0b67edff;
        maxExpArray[119] = 0x00bad03e7d883f69ad5b0a186184e06bff;
        maxExpArray[120] = 0x00b320d03b2c343d4829abd6075f0cc5ff;
        maxExpArray[121] = 0x00abc25204e02828d73c6e80bcdb1a95bf;
        maxExpArray[122] = 0x00a4b16f74ee4bb2040a1ec6c15fbbf2df;
        maxExpArray[123] = 0x009deaf736ac1f569deb1b5ae3f36c130f;
        maxExpArray[124] = 0x00976bd9952c7aa957f5937d790ef65037;
        maxExpArray[125] = 0x009131271922eaa6064b73a22d0bd4f2bf;
        maxExpArray[126] = 0x008b380f3558668c46c91c49a2f8e967b9;
        maxExpArray[127] = 0x00857ddf0117efa215952912839f6473e6;
    }

    /**
        @dev given a token supply, connector balance, weight and a deposit amount (in the connector token),
        calculates the return for a given conversion (in the main token)

        Formula:
        Return = _supply * ((1 + _depositAmount / _connectorBalance) ^ (_connectorWeight / 1000000) - 1)

        @param _supply              token total supply
        @param _connectorBalance    total connector balance
        @param _connectorWeight     connector weight, represented in ppm, 1-1000000
        @param _depositAmount       deposit amount, in connector token

        @return purchase return amount
    */
    function calculatePurchaseReturn(uint256 _supply, uint256 _connectorBalance, uint32 _connectorWeight, uint256 _depositAmount) public view returns (uint256) {
        // validate input
        require(_supply > 0 && _connectorBalance > 0 && _connectorWeight > 0 && _connectorWeight <= MAX_WEIGHT);

        // special case for 0 deposit amount
        if (_depositAmount == 0)
            return 0;

        // special case if the weight = 100%
        if (_connectorWeight == MAX_WEIGHT)
            return _supply.mul(_depositAmount) / _connectorBalance;

        uint256 result;
        uint8 precision;
        uint256 baseN = _depositAmount.add(_connectorBalance);
        (result, precision) = power(baseN, _connectorBalance, _connectorWeight, MAX_WEIGHT);
        uint256 temp = _supply.mul(result) >> precision;
        return temp - _supply;
    }

    /**
        @dev given a token supply, connector balance, weight and a sell amount (in the main token),
        calculates the return for a given conversion (in the connector token)

        Formula:
        Return = _connectorBalance * (1 - (1 - _sellAmount / _supply) ^ (1 / (_connectorWeight / 1000000)))

        @param _supply              token total supply
        @param _connectorBalance    total connector
        @param _connectorWeight     constant connector Weight, represented in ppm, 1-1000000
        @param _sellAmount          sell amount, in the token itself

        @return sale return amount
    */
    function calculateSaleReturn(uint256 _supply, uint256 _connectorBalance, uint32 _connectorWeight, uint256 _sellAmount) public view returns (uint256) {
        // validate input
        require(_supply > 0 && _connectorBalance > 0 && _connectorWeight > 0 && _connectorWeight <= MAX_WEIGHT && _sellAmount <= _supply);

        // special case for 0 sell amount
        if (_sellAmount == 0)
            return 0;

        // special case for selling the entire supply
        if (_sellAmount == _supply)
            return _connectorBalance;

        // special case if the weight = 100%
        if (_connectorWeight == MAX_WEIGHT)
            return _connectorBalance.mul(_sellAmount) / _supply;

        uint256 result;
        uint8 precision;
        uint256 baseD = _supply - _sellAmount;
        (result, precision) = power(_supply, baseD, MAX_WEIGHT, _connectorWeight);
        uint256 temp1 = _connectorBalance.mul(result);
        uint256 temp2 = _connectorBalance << precision;
        return (temp1 - temp2) / result;
    }

    /**
        @dev given two connector balances/weights and a sell amount (in the first connector token),
        calculates the return for a conversion from the first connector token to the second connector token (in the second connector token)

        Formula:
        Return = _toConnectorBalance * (1 - (_fromConnectorBalance / (_fromConnectorBalance + _amount)) ^ (_fromConnectorWeight / _toConnectorWeight))

        @param _fromConnectorBalance    input connector balance
        @param _fromConnectorWeight     input connector weight, represented in ppm, 1-1000000
        @param _toConnectorBalance      output connector balance
        @param _toConnectorWeight       output connector weight, represented in ppm, 1-1000000
        @param _amount                  input connector amount

        @return second connector amount
    */
    function calculateCrossConnectorReturn(uint256 _fromConnectorBalance, uint32 _fromConnectorWeight, uint256 _toConnectorBalance, uint32 _toConnectorWeight, uint256 _amount) public view returns (uint256) {
        // validate input
        require(_fromConnectorBalance > 0 && _fromConnectorWeight > 0 && _fromConnectorWeight <= MAX_WEIGHT && _toConnectorBalance > 0 && _toConnectorWeight > 0 && _toConnectorWeight <= MAX_WEIGHT);

        // special case for equal weights
        if (_fromConnectorWeight == _toConnectorWeight)
            return _toConnectorBalance.mul(_amount) / _fromConnectorBalance.add(_amount);

        uint256 result;
        uint8 precision;
        uint256 baseN = _fromConnectorBalance.add(_amount);
        (result, precision) = power(baseN, _fromConnectorBalance, _fromConnectorWeight, _toConnectorWeight);
        uint256 temp1 = _toConnectorBalance.mul(result);
        uint256 temp2 = _toConnectorBalance << precision;
        return (temp1 - temp2) / result;
    }

    /**
        General Description:
            Determine a value of precision.
            Calculate an integer approximation of (_baseN / _baseD) ^ (_expN / _expD) * 2 ^ precision.
            Return the result along with the precision used.

        Detailed Description:
            Instead of calculating "base ^ exp", we calculate "e ^ (log(base) * exp)".
            The value of "log(base)" is represented with an integer slightly smaller than "log(base) * 2 ^ precision".
            The larger "precision" is, the more accurately this value represents the real value.
            However, the larger "precision" is, the more bits are required in order to store this value.
            And the exponentiation function, which takes "x" and calculates "e ^ x", is limited to a maximum exponent (maximum value of "x").
            This maximum exponent depends on the "precision" used, and it is given by "maxExpArray[precision] >> (MAX_PRECISION - precision)".
            Hence we need to determine the highest precision which can be used for the given input, before calling the exponentiation function.
            This allows us to compute "base ^ exp" with maximum accuracy and without exceeding 256 bits in any of the intermediate computations.
            This functions assumes that "_expN < 2 ^ 256 / log(MAX_NUM - 1)", otherwise the multiplication should be replaced with a "safeMul".
    */
    function power(uint256 _baseN, uint256 _baseD, uint32 _expN, uint32 _expD) internal view returns (uint256, uint8) {
        require(_baseN < MAX_NUM);

        uint256 baseLog;
        uint256 base = _baseN * FIXED_1 / _baseD;
        if (base < OPT_LOG_MAX_VAL) {
            baseLog = optimalLog(base);
        }
        else {
            baseLog = generalLog(base);
        }

        uint256 baseLogTimesExp = baseLog * _expN / _expD;
        if (baseLogTimesExp < OPT_EXP_MAX_VAL) {
            return (optimalExp(baseLogTimesExp), MAX_PRECISION);
        }
        else {
            uint8 precision = findPositionInMaxExpArray(baseLogTimesExp);
            return (generalExp(baseLogTimesExp >> (MAX_PRECISION - precision), precision), precision);
        }
    }

    /**
        Compute log(x / FIXED_1) * FIXED_1.
        This functions assumes that "x >= FIXED_1", because the output would be negative otherwise.
    */
    function generalLog(uint256 x) internal pure returns (uint256) {
        uint256 res = 0;

        // If x >= 2, then we compute the integer part of log2(x), which is larger than 0.
        if (x >= FIXED_2) {
            uint8 count = floorLog2(x / FIXED_1);
            x >>= count; // now x < 2
            res = count * FIXED_1;
        }

        // If x > 1, then we compute the fraction part of log2(x), which is larger than 0.
        if (x > FIXED_1) {
            for (uint8 i = MAX_PRECISION; i > 0; --i) {
                x = (x * x) / FIXED_1; // now 1 < x < 4
                if (x >= FIXED_2) {
                    x >>= 1; // now 1 < x < 2
                    res += ONE << (i - 1);
                }
            }
        }

        return res * LN2_NUMERATOR / LN2_DENOMINATOR;
    }

    /**
        Compute the largest integer smaller than or equal to the binary logarithm of the input.
    */
    function floorLog2(uint256 _n) internal pure returns (uint8) {
        uint8 res = 0;

        if (_n < 256) {
            // At most 8 iterations
            while (_n > 1) {
                _n >>= 1;
                res += 1;
            }
        }
        else {
            // Exactly 8 iterations
            for (uint8 s = 128; s > 0; s >>= 1) {
                if (_n >= (ONE << s)) {
                    _n >>= s;
                    res |= s;
                }
            }
        }

        return res;
    }

    /**
        The global "maxExpArray" is sorted in descending order, and therefore the following statements are equivalent:
        - This function finds the position of [the smallest value in "maxExpArray" larger than or equal to "x"]
        - This function finds the highest position of [a value in "maxExpArray" larger than or equal to "x"]
    */
    function findPositionInMaxExpArray(uint256 _x) internal view returns (uint8) {
        uint8 lo = MIN_PRECISION;
        uint8 hi = MAX_PRECISION;

        while (lo + 1 < hi) {
            uint8 mid = (lo + hi) / 2;
            if (maxExpArray[mid] >= _x)
                lo = mid;
            else
                hi = mid;
        }

        if (maxExpArray[hi] >= _x)
            return hi;
        if (maxExpArray[lo] >= _x)
            return lo;

        require(false);
        return 0;
    }

    /**
        This function can be auto-generated by the script 'PrintFunctionGeneralExp.py'.
        It approximates "e ^ x" via maclaurin summation: "(x^0)/0! + (x^1)/1! + ... + (x^n)/n!".
        It returns "e ^ (x / 2 ^ precision) * 2 ^ precision", that is, the result is upshifted for accuracy.
        The global "maxExpArray" maps each "precision" to "((maximumExponent + 1) << (MAX_PRECISION - precision)) - 1".
        The maximum permitted value for "x" is therefore given by "maxExpArray[precision] >> (MAX_PRECISION - precision)".
    */
    function generalExp(uint256 _x, uint8 _precision) internal pure returns (uint256) {
        uint256 xi = _x;
        uint256 res = 0;

        xi = (xi * _x) >> _precision; res += xi * 0x3442c4e6074a82f1797f72ac0000000; // add x^02 * (33! / 02!)
        xi = (xi * _x) >> _precision; res += xi * 0x116b96f757c380fb287fd0e40000000; // add x^03 * (33! / 03!)
        xi = (xi * _x) >> _precision; res += xi * 0x045ae5bdd5f0e03eca1ff4390000000; // add x^04 * (33! / 04!)
        xi = (xi * _x) >> _precision; res += xi * 0x00defabf91302cd95b9ffda50000000; // add x^05 * (33! / 05!)
        xi = (xi * _x) >> _precision; res += xi * 0x002529ca9832b22439efff9b8000000; // add x^06 * (33! / 06!)
        xi = (xi * _x) >> _precision; res += xi * 0x00054f1cf12bd04e516b6da88000000; // add x^07 * (33! / 07!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000a9e39e257a09ca2d6db51000000; // add x^08 * (33! / 08!)
        xi = (xi * _x) >> _precision; res += xi * 0x000012e066e7b839fa050c309000000; // add x^09 * (33! / 09!)
        xi = (xi * _x) >> _precision; res += xi * 0x000001e33d7d926c329a1ad1a800000; // add x^10 * (33! / 10!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000002bee513bdb4a6b19b5f800000; // add x^11 * (33! / 11!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000003a9316fa79b88eccf2a00000; // add x^12 * (33! / 12!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000048177ebe1fa812375200000; // add x^13 * (33! / 13!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000005263fe90242dcbacf00000; // add x^14 * (33! / 14!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000057e22099c030d94100000; // add x^15 * (33! / 15!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000057e22099c030d9410000; // add x^16 * (33! / 16!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000052b6b54569976310000; // add x^17 * (33! / 17!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000004985f67696bf748000; // add x^18 * (33! / 18!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000000003dea12ea99e498000; // add x^19 * (33! / 19!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000031880f2214b6e000; // add x^20 * (33! / 20!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000000000025bcff56eb36000; // add x^21 * (33! / 21!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000000000001b722e10ab1000; // add x^22 * (33! / 22!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000001317c70077000; // add x^23 * (33! / 23!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000000000cba84aafa00; // add x^24 * (33! / 24!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000000000082573a0a00; // add x^25 * (33! / 25!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000000000005035ad900; // add x^26 * (33! / 26!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000000000000000002f881b00; // add x^27 * (33! / 27!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000001b29340; // add x^28 * (33! / 28!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000000000000000efc40; // add x^29 * (33! / 29!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000000007fe0; // add x^30 * (33! / 30!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000000000420; // add x^31 * (33! / 31!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000000000021; // add x^32 * (33! / 32!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000000000001; // add x^33 * (33! / 33!)

        return res / 0x688589cc0e9505e2f2fee5580000000 + _x + (ONE << _precision); // divide by 33! and then add x^1 / 1! + x^0 / 0!
    }

    /**
        Return log(x / FIXED_1) * FIXED_1
        Input range: FIXED_1 <= x <= LOG_EXP_MAX_VAL - 1
        Auto-generated via 'PrintFunctionOptimalLog.py'
        Detailed description:
        - Rewrite the input as a product of natural exponents and a single residual r, such that 1 < r < 2
        - The natural logarithm of each (pre-calculated) exponent is the degree of the exponent
        - The natural logarithm of r is calculated via Taylor series for log(1 + x), where x = r - 1
        - The natural logarithm of the input is calculated by summing up the intermediate results above
        - For example: log(250) = log(e^4 * e^1 * e^0.5 * 1.021692859) = 4 + 1 + 0.5 + log(1 + 0.021692859)
    */
    function optimalLog(uint256 x) internal pure returns (uint256) {
        uint256 res = 0;

        uint256 y;
        uint256 z;
        uint256 w;

        if (x >= 0xd3094c70f034de4b96ff7d5b6f99fcd8) {res += 0x40000000000000000000000000000000; x = x * FIXED_1 / 0xd3094c70f034de4b96ff7d5b6f99fcd8;} // add 1 / 2^1
        if (x >= 0xa45af1e1f40c333b3de1db4dd55f29a7) {res += 0x20000000000000000000000000000000; x = x * FIXED_1 / 0xa45af1e1f40c333b3de1db4dd55f29a7;} // add 1 / 2^2
        if (x >= 0x910b022db7ae67ce76b441c27035c6a1) {res += 0x10000000000000000000000000000000; x = x * FIXED_1 / 0x910b022db7ae67ce76b441c27035c6a1;} // add 1 / 2^3
        if (x >= 0x88415abbe9a76bead8d00cf112e4d4a8) {res += 0x08000000000000000000000000000000; x = x * FIXED_1 / 0x88415abbe9a76bead8d00cf112e4d4a8;} // add 1 / 2^4
        if (x >= 0x84102b00893f64c705e841d5d4064bd3) {res += 0x04000000000000000000000000000000; x = x * FIXED_1 / 0x84102b00893f64c705e841d5d4064bd3;} // add 1 / 2^5
        if (x >= 0x8204055aaef1c8bd5c3259f4822735a2) {res += 0x02000000000000000000000000000000; x = x * FIXED_1 / 0x8204055aaef1c8bd5c3259f4822735a2;} // add 1 / 2^6
        if (x >= 0x810100ab00222d861931c15e39b44e99) {res += 0x01000000000000000000000000000000; x = x * FIXED_1 / 0x810100ab00222d861931c15e39b44e99;} // add 1 / 2^7
        if (x >= 0x808040155aabbbe9451521693554f733) {res += 0x00800000000000000000000000000000; x = x * FIXED_1 / 0x808040155aabbbe9451521693554f733;} // add 1 / 2^8

        z = y = x - FIXED_1;
        w = y * y / FIXED_1;
        res += z * (0x100000000000000000000000000000000 - y) / 0x100000000000000000000000000000000; z = z * w / FIXED_1; // add y^01 / 01 - y^02 / 02
        res += z * (0x0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - y) / 0x200000000000000000000000000000000; z = z * w / FIXED_1; // add y^03 / 03 - y^04 / 04
        res += z * (0x099999999999999999999999999999999 - y) / 0x300000000000000000000000000000000; z = z * w / FIXED_1; // add y^05 / 05 - y^06 / 06
        res += z * (0x092492492492492492492492492492492 - y) / 0x400000000000000000000000000000000; z = z * w / FIXED_1; // add y^07 / 07 - y^08 / 08
        res += z * (0x08e38e38e38e38e38e38e38e38e38e38e - y) / 0x500000000000000000000000000000000; z = z * w / FIXED_1; // add y^09 / 09 - y^10 / 10
        res += z * (0x08ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b - y) / 0x600000000000000000000000000000000; z = z * w / FIXED_1; // add y^11 / 11 - y^12 / 12
        res += z * (0x089d89d89d89d89d89d89d89d89d89d89 - y) / 0x700000000000000000000000000000000; z = z * w / FIXED_1; // add y^13 / 13 - y^14 / 14
        res += z * (0x088888888888888888888888888888888 - y) / 0x800000000000000000000000000000000;                      // add y^15 / 15 - y^16 / 16

        return res;
    }

    /**
        Return e ^ (x / FIXED_1) * FIXED_1
        Input range: 0 <= x <= OPT_EXP_MAX_VAL - 1
        Auto-generated via 'PrintFunctionOptimalExp.py'
        Detailed description:
        - Rewrite the input as a sum of binary exponents and a single residual r, as small as possible
        - The exponentiation of each binary exponent is given (pre-calculated)
        - The exponentiation of r is calculated via Taylor series for e^x, where x = r
        - The exponentiation of the input is calculated by multiplying the intermediate results above
        - For example: e^5.521692859 = e^(4 + 1 + 0.5 + 0.021692859) = e^4 * e^1 * e^0.5 * e^0.021692859
    */
    function optimalExp(uint256 x) internal pure returns (uint256) {
        uint256 res = 0;

        uint256 y;
        uint256 z;

        z = y = x % 0x10000000000000000000000000000000; // get the input modulo 2^(-3)
        z = z * y / FIXED_1; res += z * 0x10e1b3be415a0000; // add y^02 * (20! / 02!)
        z = z * y / FIXED_1; res += z * 0x05a0913f6b1e0000; // add y^03 * (20! / 03!)
        z = z * y / FIXED_1; res += z * 0x0168244fdac78000; // add y^04 * (20! / 04!)
        z = z * y / FIXED_1; res += z * 0x004807432bc18000; // add y^05 * (20! / 05!)
        z = z * y / FIXED_1; res += z * 0x000c0135dca04000; // add y^06 * (20! / 06!)
        z = z * y / FIXED_1; res += z * 0x0001b707b1cdc000; // add y^07 * (20! / 07!)
        z = z * y / FIXED_1; res += z * 0x000036e0f639b800; // add y^08 * (20! / 08!)
        z = z * y / FIXED_1; res += z * 0x00000618fee9f800; // add y^09 * (20! / 09!)
        z = z * y / FIXED_1; res += z * 0x0000009c197dcc00; // add y^10 * (20! / 10!)
        z = z * y / FIXED_1; res += z * 0x0000000e30dce400; // add y^11 * (20! / 11!)
        z = z * y / FIXED_1; res += z * 0x000000012ebd1300; // add y^12 * (20! / 12!)
        z = z * y / FIXED_1; res += z * 0x0000000017499f00; // add y^13 * (20! / 13!)
        z = z * y / FIXED_1; res += z * 0x0000000001a9d480; // add y^14 * (20! / 14!)
        z = z * y / FIXED_1; res += z * 0x00000000001c6380; // add y^15 * (20! / 15!)
        z = z * y / FIXED_1; res += z * 0x000000000001c638; // add y^16 * (20! / 16!)
        z = z * y / FIXED_1; res += z * 0x0000000000001ab8; // add y^17 * (20! / 17!)
        z = z * y / FIXED_1; res += z * 0x000000000000017c; // add y^18 * (20! / 18!)
        z = z * y / FIXED_1; res += z * 0x0000000000000014; // add y^19 * (20! / 19!)
        z = z * y / FIXED_1; res += z * 0x0000000000000001; // add y^20 * (20! / 20!)
        res = res / 0x21c3677c82b40000 + y + FIXED_1; // divide by 20! and then add y^1 / 1! + y^0 / 0!

        if ((x & 0x010000000000000000000000000000000) != 0) res = res * 0x1c3d6a24ed82218787d624d3e5eba95f9 / 0x18ebef9eac820ae8682b9793ac6d1e776; // multiply by e^2^(-3)
        if ((x & 0x020000000000000000000000000000000) != 0) res = res * 0x18ebef9eac820ae8682b9793ac6d1e778 / 0x1368b2fc6f9609fe7aceb46aa619baed4; // multiply by e^2^(-2)
        if ((x & 0x040000000000000000000000000000000) != 0) res = res * 0x1368b2fc6f9609fe7aceb46aa619baed5 / 0x0bc5ab1b16779be3575bd8f0520a9f21f; // multiply by e^2^(-1)
        if ((x & 0x080000000000000000000000000000000) != 0) res = res * 0x0bc5ab1b16779be3575bd8f0520a9f21e / 0x0454aaa8efe072e7f6ddbab84b40a55c9; // multiply by e^2^(+0)
        if ((x & 0x100000000000000000000000000000000) != 0) res = res * 0x0454aaa8efe072e7f6ddbab84b40a55c5 / 0x00960aadc109e7a3bf4578099615711ea; // multiply by e^2^(+1)
        if ((x & 0x200000000000000000000000000000000) != 0) res = res * 0x00960aadc109e7a3bf4578099615711d7 / 0x0002bf84208204f5977f9a8cf01fdce3d; // multiply by e^2^(+2)
        if ((x & 0x400000000000000000000000000000000) != 0) res = res * 0x0002bf84208204f5977f9a8cf01fdc307 / 0x0000003c6ab775dd0b95b4cbee7e65d11; // multiply by e^2^(+3)

        return res;
    }
}

Contract ABI

[{"constant":true,"inputs":[{"name":"_supply","type":"uint256"},{"name":"_connectorBalance","type":"uint256"},{"name":"_connectorWeight","type":"uint32"},{"name":"_depositAmount","type":"uint256"}],"name":"calculatePurchaseReturn","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_supply","type":"uint256"},{"name":"_connectorBalance","type":"uint256"},{"name":"_connectorWeight","type":"uint32"},{"name":"_sellAmount","type":"uint256"}],"name":"calculateSaleReturn","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_fromConnectorBalance","type":"uint256"},{"name":"_fromConnectorWeight","type":"uint32"},{"name":"_toConnectorBalance","type":"uint256"},{"name":"_toConnectorWeight","type":"uint32"},{"name":"_amount","type":"uint256"}],"name":"calculateCrossConnectorReturn","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

60c0604052600360808190527f302e33000000000000000000000000000000000000000000000000000000000060a0908152620000409160009190620007f7565b503480156200004e57600080fd5b506001606060020a641c35fedd1502036021556001605e60020a646c3390ecc902036022556001606160020a640cf801476102036023556001605f60020a6431bdb23e1d02036024556001605b60020a6502fb1d8fe08302036025556001605a60020a6505b771955b3702036026556001605960020a650af67a93bb5102036027556001605860020a6515060c256cb302036028556001605860020a651428a2f98d7302036029556001605660020a654d51566397090203602a556001605560020a65944620b0e70f0203602b557011c592761c666fffffffffffffffffffff602c5570110a688680a757ffffffffffffffffffff602d55701056f1b5bedf77ffffffffffffffffffff602e55700faadceceeff8bffffffffffffffffffff602f55700f05dc6b27edadffffffffffffffffffff603055700e67a5a25da4107fffffffffffffffffff603155700dcff115b14eedffffffffffffffffffff603255700d3e7a392431239fffffffffffffffffff603355700cb2ff529eb71e4fffffffffffffffffff603455700c2d415c3db974afffffffffffffffffff603555700bad03e7d883f69bffffffffffffffffff603655700b320d03b2c343d5ffffffffffffffffff603755700abc25204e02828dffffffffffffffffff603855700a4b16f74ee4bb207fffffffffffffffff6039557009deaf736ac1f569ffffffffffffffffff603a55700976bd9952c7aa957fffffffffffffffff603b557009131271922eaa606fffffffffffffffff603c557008b380f3558668c46fffffffffffffffff603d55700857ddf0117efa215bffffffffffffffff603e556001608360020a03603f557007abbf6f6abb9d087fffffffffffffffff60405570075af62cbac95f7dfa7fffffffffffffff60415570070d7fb7452e187ac13fffffffffffffff6042557006c3390ecc8af379295fffffffffffffff60435570067c00a3b07ffc01fd6fffffffffffffff604455700637b647c39cbb9d3d27ffffffffffffff6045557005f63b1fc104dbd39587ffffffffffffff6046557005b771955b36e12f7235ffffffffffffff60475570057b3d49dda84556d6f6ffffffffffffff60485570054183095b2c8ececf30ffffffffffffff60495570050a28be635ca2b888f77fffffffffffff604a557004d5156639708c9db33c3fffffffffffff604b557004a23105873875bd52dfdfffffffffffff604c55700471649d87199aa990756fffffffffffff604d557004429a21a029d4c1457cfbffffffffffff604e55700415bc6d6fb7dd71af2cb3ffffffffffff604f557003eab73b3bbfe282243ce1ffffffffffff6050557003c1771ac9fb6b4c18e229ffffffffffff605155700399e96897690418f785257fffffffffff605255700373fc456c53bb779bf0ea9fffffffffff60535570034f9e8e490c48e67e6ab8bfffffffffff60545570032cbfd4a7adc790560b3337ffffffffff60555570030b50570f6e5d2acca94613ffffffffff6056557002eb40f9f620fda6b56c2861ffffffffff6057557002cc8340ecb0d0f520a6af58ffffffffff6058557002af09481380a0a35cf1ba02ffffffffff605955700292c5bdd3b92ec810287b1b3fffffffff605a55700277abdcdab07d5a77ac6d6b9fffffffff605b5570025daf6654b1eaa55fd64df5efffffffff605c55700244c49c648baa98192dce88b7ffffffff605d5570022ce03cd5619a311b2471268bffffffff605e55700215f77c045fbe885654a44a0fffffffff605f556001608160020a036060557001eaefdbdaaee7421fc4d3ede5ffffffff6061557001d6bd8b2eb257df7e8ca57b09bfffffff6062557001c35fedd14b861eb0443f7f133fffffff6063557001b0ce43b322bcde4a56e8ada5afffffff60645570019f0028ec1fff007f5a195a39dfffffff60655570018ded91f0e72ee74f49b15ba527ffffff60665570017d8ec7f04136f4e5615fd41a63ffffff60675570016ddc6556cdb84bdc8d12d22e6fffffff60685570015ecf52776a1155b5bd8395814f7fffff60695570015060c256cb23b3b3cc3754cf40ffffff606a557001428a2f98d728ae223ddab715be3fffff606b5570013545598e5c23276ccf0ede68034fffff606c557001288c4161ce1d6f54b7f61081194fffff606d5570011c592761c666aa641d5a01a40f17ffff606e55700110a688680a7530515f3e6e6cfdcdffff606f557001056f1b5bedf75c6bcb2ce8aed428ffff6070556ffaadceceeff8a0890f3875f008277fff6071556ff05dc6b27edad306388a600f6ba0bfff6072556fe67a5a25da41063de1495d5b18cdbfff6073556fdcff115b14eedde6fc3aa5353f2e4fff6074556fd3e7a3924312399f9aae2e0f868f8fff6075556fcb2ff529eb71e41582cccd5a1ee26fff6076556fc2d415c3db974ab32a51840c0b67edff6077556fbad03e7d883f69ad5b0a186184e06bff6078556fb320d03b2c343d4829abd6075f0cc5ff6079556fabc25204e02828d73c6e80bcdb1a95bf607a556fa4b16f74ee4bb2040a1ec6c15fbbf2df607b556f9deaf736ac1f569deb1b5ae3f36c130f607c556f976bd9952c7aa957f5937d790ef65037607d556f9131271922eaa6064b73a22d0bd4f2bf607e556f8b380f3558668c46c91c49a2f8e967b9607f556f857ddf0117efa215952912839f6473e66080556200089c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200083a57805160ff19168380011785556200086a565b828001600101855582156200086a579182015b828111156200086a5782518255916020019190600101906200084d565b50620008789291506200087c565b5090565b6200089991905b8082111562000878576000815560010162000883565b90565b61181e80620008ac6000396000f3006080604052600436106100615763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166329a00e7c811461006657806349f9b0f71461009f57806354fd4d50146100c657806365098bb314610150575b600080fd5b34801561007257600080fd5b5061008d60043560243563ffffffff6044351660643561017e565b60408051918252519081900360200190f35b3480156100ab57600080fd5b5061008d60043560243563ffffffff6044351660643561025e565b3480156100d257600080fd5b506100db61035b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101155781810151838201526020016100fd565b50505050905090810190601f1680156101425780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015c57600080fd5b5061008d60043563ffffffff6024358116906044359060643516608435610407565b600080600080600080891180156101955750600088115b80156101a7575060008763ffffffff16115b80156101bc5750620f424063ffffffff881611155b15156101c757600080fd5b8515156101d75760009450610252565b63ffffffff8716620f4240141561020a57876101f98a8863ffffffff61051c16565b81151561020257fe5b049450610252565b61021a868963ffffffff61062616565b915061022b828989620f42406106cb565b909450925060ff83166102448a8663ffffffff61051c16565b9060020a9004905088810394505b50505050949350505050565b60008060008060008060008a1180156102775750600089115b8015610289575060008863ffffffff16115b801561029e5750620f424063ffffffff891611155b80156102aa5750898711155b15156102b557600080fd5b8615156102c5576000955061034e565b898714156102d55788955061034e565b63ffffffff8816620f4240141561030857896102f78a8963ffffffff61051c16565b81151561030057fe5b04955061034e565b868a03925061031c8a84620f42408b6106cb565b9095509350610331898663ffffffff61051c16565b91505060ff831660020a88028481830381151561034a57fe5b0495505b5050505050949350505050565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156103ff5780601f106103d4576101008083540402835291602001916103ff565b820191906000526020600020905b8154815290600101906020018083116103e257829003601f168201915b505050505081565b60008060008060008060008b118015610426575060008a63ffffffff16115b801561043b5750620f424063ffffffff8b1611155b80156104475750600089115b8015610459575060008863ffffffff16115b801561046e5750620f424063ffffffff891611155b151561047957600080fd5b8763ffffffff168a63ffffffff1614156104be5761049d8b8863ffffffff61062616565b6104ad8a8963ffffffff61051c16565b8115156104b657fe5b04955061050e565b6104ce8b8863ffffffff61062616565b92506104dc838c8c8b6106cb565b90955093506104f1898663ffffffff61051c16565b91505060ff831660020a88028481830381151561050a57fe5b0495505b505050505095945050505050565b60008083151561052f576000915061061f565b5082820282848281151561053f57fe5b60408051808201909152601181527f4d4154485f4d554c5f4f564552464c4f570000000000000000000000000000006020820152929190041461061a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156105df5781810151838201526020016105c7565b50505050905090810190601f16801561060c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508091505b5092915050565b60408051808201909152601181527f4d4154485f4144445f4f564552464c4f570000000000000000000000000000006020820152600090838301908482101561061a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156105df5781810151838201526020016105c7565b600080808080807002000000000000000000000000000000008a106106ef57600080fd5b886f800000000000000000000000000000008b0281151561070c57fe5b04925070015bf0a8b1457695355fb8ac404e7a79e383101561073857610731836107c1565b9350610744565b61074183610cb5565b93505b8663ffffffff168863ffffffff16850281151561075d57fe5b04915070080000000000000000000000000000000082101561078d5761078282610df4565b607f955095506107b4565b610796826112d9565b90506107ae60ff607f8390031660020a830482611366565b81955095505b5050505094509492505050565b6000808080806fd3094c70f034de4b96ff7d5b6f99fcd8861061081c576f4000000000000000000000000000000093909301926fd3094c70f034de4b96ff7d5b6f99fcd86f8000000000000000000000000000000087020495505b6fa45af1e1f40c333b3de1db4dd55f29a78610610871576f2000000000000000000000000000000093909301926fa45af1e1f40c333b3de1db4dd55f29a76f8000000000000000000000000000000087020495505b6f910b022db7ae67ce76b441c27035c6a186106108c6576f1000000000000000000000000000000093909301926f910b022db7ae67ce76b441c27035c6a16f8000000000000000000000000000000087020495505b6f88415abbe9a76bead8d00cf112e4d4a8861061091b576f0800000000000000000000000000000093909301926f88415abbe9a76bead8d00cf112e4d4a86f8000000000000000000000000000000087020495505b6f84102b00893f64c705e841d5d4064bd38610610970576f0400000000000000000000000000000093909301926f84102b00893f64c705e841d5d4064bd36f8000000000000000000000000000000087020495505b6f8204055aaef1c8bd5c3259f4822735a286106109c5576f0200000000000000000000000000000093909301926f8204055aaef1c8bd5c3259f4822735a26f8000000000000000000000000000000087020495505b6f810100ab00222d861931c15e39b44e998610610a1a576f0100000000000000000000000000000093909301926f810100ab00222d861931c15e39b44e996f8000000000000000000000000000000087020495505b6f808040155aabbbe9451521693554f7338610610a6e576e80000000000000000000000000000093909301926f808040155aabbbe9451521693554f7336f8000000000000000000000000000000087020495505b7fffffffffffffffffffffffffffffffff80000000000000000000000000000000860192508291506f8000000000000000000000000000000082800204905070010000000000000000000000000000000083810383020493909301926f800000000000000000000000000000008282020491507002000000000000000000000000000000006faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa84900383020493909301926f800000000000000000000000000000008282020491507003000000000000000000000000000000006f9999999999999999999999999999999984900383020493909301926f800000000000000000000000000000008282020491507004000000000000000000000000000000006f9249249249249249249249249249249284900383020493909301926f800000000000000000000000000000008282020491507005000000000000000000000000000000006f8e38e38e38e38e38e38e38e38e38e38e84900383020493909301926f800000000000000000000000000000008282020491507006000000000000000000000000000000006f8ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b84900383020493909301926f800000000000000000000000000000008282020491507007000000000000000000000000000000006f89d89d89d89d89d89d89d89d89d89d8984900383020493909301926f800000000000000000000000000000008282020491507008000000000000000000000000000000006f888888888888888888888888888888888490038302049390930195945050505050565b60008080807001000000000000000000000000000000008510610d1157610ced6f800000000000000000000000000000008604611789565b60ff8116600281900a909604956f8000000000000000000000000000000002935091505b6f80000000000000000000000000000000851115610dc45750607f5b60008160ff161115610dc4576f800000000000000000000000000000008580020494507001000000000000000000000000000000008510610d9d576002948590049460ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff830116900a92909201915b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01610d2d565b6f05b9de1d10bf4103d647b0955897ba806f03f80fe03f80fe03f80fe03f80fe03f884020493505b505050919050565b6000670168244fdac780006f800000000000000000000000000000006f0fffffffffffffffffffffffffffffff84168080028290048082028390048083028490049485026710e1b3be415a00009092026705a0913f6b1e000091909102010192909181830204905080664807432bc1800002830192506f80000000000000000000000000000000828202811515610e8757fe5b04905080660c0135dca0400002830192506f80000000000000000000000000000000828202811515610eb557fe5b049050806601b707b1cdc00002830192506f80000000000000000000000000000000828202811515610ee357fe5b049050806536e0f639b80002830192506f80000000000000000000000000000000828202811515610f1057fe5b04905080650618fee9f80002830192506f80000000000000000000000000000000828202811515610f3d57fe5b04905080649c197dcc0002830192506f80000000000000000000000000000000828202811515610f6957fe5b04905080640e30dce40002830192506f80000000000000000000000000000000828202811515610f9557fe5b0490508064012ebd130002830192506f80000000000000000000000000000000828202811515610fc157fe5b049050806317499f0002830192506f80000000000000000000000000000000828202811515610fec57fe5b049050806301a9d48002830192506f8000000000000000000000000000000082820281151561101757fe5b04905080621c638002830192506f8000000000000000000000000000000082820281151561104157fe5b049050806201c63802830192506f8000000000000000000000000000000082820281151561106b57fe5b04905080611ab802830192506f8000000000000000000000000000000082820281151561109457fe5b0490508061017c02830192506f800000000000000000000000000000008282028115156110bd57fe5b04905080601402830192506f800000000000000000000000000000008282028115156110e557fe5b6721c3677c82b400009190049384010482016f80000000000000000000000000000000019290506f1000000000000000000000000000000085161561114e5770018ebef9eac820ae8682b9793ac6d1e7767001c3d6a24ed82218787d624d3e5eba95f984020492505b6f20000000000000000000000000000000851615611190577001368b2fc6f9609fe7aceb46aa619baed470018ebef9eac820ae8682b9793ac6d1e77884020492505b6f400000000000000000000000000000008516156111d1576fbc5ab1b16779be3575bd8f0520a9f21f7001368b2fc6f9609fe7aceb46aa619baed584020492505b6f80000000000000000000000000000000851615611211576f454aaa8efe072e7f6ddbab84b40a55c96fbc5ab1b16779be3575bd8f0520a9f21e84020492505b700100000000000000000000000000000000851615611252576f0960aadc109e7a3bf4578099615711ea6f454aaa8efe072e7f6ddbab84b40a55c584020492505b700200000000000000000000000000000000851615611292576e2bf84208204f5977f9a8cf01fdce3d6f0960aadc109e7a3bf4578099615711d784020492505b7004000000000000000000000000000000008516156112d0576d03c6ab775dd0b95b4cbee7e65d116e2bf84208204f5977f9a8cf01fdc30784020492505b50909392505050565b60006020607f825b8160ff168360010160ff16101561132657600260ff8484011604905084600160ff83166080811061130e57fe5b01541061131d57809250611321565b8091505b6112e1565b84600160ff84166080811061133757fe5b01541061134657819350610dec565b84600160ff85166080811061135757fe5b01541061006157829350610dec565b6000806000849150600090508360ff168583029060020a90049150816f03442c4e6074a82f1797f72ac000000002810190508360ff168583029060020a90049150816f0116b96f757c380fb287fd0e4000000002810190508360ff168583029060020a90049150816e45ae5bdd5f0e03eca1ff439000000002810190508360ff168583029060020a90049150816e0defabf91302cd95b9ffda5000000002810190508360ff168583029060020a90049150816e02529ca9832b22439efff9b800000002810190508360ff168583029060020a90049150816d54f1cf12bd04e516b6da8800000002810190508360ff168583029060020a90049150816d0a9e39e257a09ca2d6db5100000002810190508360ff168583029060020a90049150816d012e066e7b839fa050c30900000002810190508360ff168583029060020a90049150816c1e33d7d926c329a1ad1a80000002810190508360ff168583029060020a90049150816c02bee513bdb4a6b19b5f80000002810190508360ff168583029060020a90049150816b3a9316fa79b88eccf2a0000002810190508360ff168583029060020a90049150816b048177ebe1fa81237520000002810190508360ff168583029060020a90049150816a5263fe90242dcbacf0000002810190508360ff168583029060020a90049150816a057e22099c030d9410000002810190508360ff168583029060020a90049150816957e22099c030d941000002810190508360ff168583029060020a900491508169052b6b5456997631000002810190508360ff168583029060020a9004915081684985f67696bf74800002810190508360ff168583029060020a90049150816803dea12ea99e49800002810190508360ff168583029060020a90049150816731880f2214b6e00002810190508360ff168583029060020a900491508167025bcff56eb3600002810190508360ff168583029060020a9004915081661b722e10ab100002810190508360ff168583029060020a90049150816601317c7007700002810190508360ff168583029060020a9004915081650cba84aafa0002810190508360ff168583029060020a90049150816482573a0a0002810190508360ff168583029060020a90049150816405035ad90002810190508360ff168583029060020a9004915081632f881b0002810190508360ff168583029060020a90049150816301b2934002810190508360ff168583029060020a9004915081620efc4002810190508360ff168583029060020a9004915081617fe002810190508360ff168583029060020a900491508161042002810190508360ff168583029060020a9004915081602102810190508360ff168583029060020a9004915081600102810190508360ff1660019060020a02856f0688589cc0e9505e2f2fee55800000008381151561177d57fe5b04010195945050505050565b600080806101008410156117b8575b60018411156117b35760029093049260019190910190611798565b61061f565b5060805b60008160ff16111561061f5760ff811660020a84106117e55760ff811660020a90930492908117905b600260ff909116046117bc5600a165627a7a72305820643f8fa590014b530b08fc245df73db4f108f86c4dfe53c7a74fb2021a9381fa0029

Deployed ByteCode Sourcemap

3982:31490:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14370:873;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;14370:873:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15890:1055;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;15890:1055:0;;;;;;;;;;;;;4074:29;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4074:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4074:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17815:1013;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;17815:1013:0;;;;;;;;;;;;;;;;;;;14370:873;14517:7;14947:14;14972:15;14998:13;15156:12;14582:1;14572:7;:11;:36;;;;;14607:1;14587:17;:21;14572:36;:60;;;;;14631:1;14612:16;:20;;;14572:60;:94;;;;-1:-1:-1;4188:7:0;14636:30;;;;;14572:94;14564:103;;;;;;;;14730:19;;14726:46;;;14771:1;14764:8;;;;14726:46;14835:30;;;4188:7;14835:30;14831:103;;;14917:17;14887:27;:7;14899:14;14887:27;:11;:27;:::i;:::-;:47;;;;;;;;14880:54;;;;14831:103;15014:37;:14;15033:17;15014:37;:18;:37;:::i;:::-;14998:53;;15084:61;15090:5;15097:17;15116:16;4188:7;15084:5;:61::i;:::-;15062:83;;-1:-1:-1;15062:83:0;-1:-1:-1;15171:32:0;;;:19;:7;15062:83;15171:19;:11;:19;:::i;:::-;:32;;;;;15156:47;;15228:7;15221:4;:14;15214:21;;14370:873;;;;;;;;;;;:::o;15890:1055::-;16030:7;16610:14;16635:15;16661:13;16793;16849;16095:1;16085:7;:11;:36;;;;;16120:1;16100:17;:21;16085:36;:60;;;;;16144:1;16125:16;:20;;;16085:60;:94;;;;-1:-1:-1;4188:7:0;16149:30;;;;;16085:94;:120;;;;;16198:7;16183:11;:22;;16085:120;16077:129;;;;;;;;16266:16;;16262:43;;;16304:1;16297:8;;;;16262:43;16392:7;16377:11;:22;16373:65;;;16421:17;16414:24;;;;16373:65;16501:30;;;4188:7;16501:30;16497:100;;;16590:7;16553:34;:17;16575:11;16553:34;:21;:34;:::i;:::-;:44;;;;;;;;16546:51;;;;16497:100;16687:11;16677:7;:21;16661:37;;16731:51;16737:7;16746:5;4188:7;16765:16;16731:5;:51::i;:::-;16709:73;;-1:-1:-1;16709:73:0;-1:-1:-1;16809:29:0;:17;16709:73;16809:29;:21;:29;:::i;:::-;16793:45;-1:-1:-1;;16865:30:0;;;;;;;16931:6;16914:13;;;16913:24;;;;;;;;16906:31;;15890:1055;;;;;;;;;;;;:::o;4074:29::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;17815:1013::-;18008:7;18450:14;18475:15;18501:13;18672;18730;18087:1;18063:21;:25;:53;;;;;18115:1;18092:20;:24;;;18063:53;:91;;;;-1:-1:-1;4188:7:0;18120:34;;;;;18063:91;:118;;;;;18180:1;18158:19;:23;18063:118;:144;;;;;18206:1;18185:18;:22;;;18063:144;:180;;;;-1:-1:-1;4188:7:0;18211:32;;;;;18063:180;18055:189;;;;;;;;18328:18;18304:42;;:20;:42;;;18300:137;;;18403:34;:21;18429:7;18403:34;:25;:34;:::i;:::-;18368:32;:19;18392:7;18368:32;:23;:32;:::i;:::-;:69;;;;;;;;18361:76;;;;18300:137;18517:34;:21;18543:7;18517:34;:25;:34;:::i;:::-;18501:50;;18584:77;18590:5;18597:21;18620:20;18642:18;18584:5;:77::i;:::-;18562:99;;-1:-1:-1;18562:99:0;-1:-1:-1;18688:31:0;:19;18562:99;18688:31;:23;:31;:::i;:::-;18672:47;-1:-1:-1;;18746:32:0;;;;;;;18814:6;18797:13;;;18796:24;;;;;;;;18789:31;;17815:1013;;;;;;;;;;;;;:::o;1433:460::-;1493:7;;1737;;1733:48;;;1768:1;1761:8;;;;1733:48;-1:-1:-1;1805:7:0;;;1810:2;1805;:7;1831:6;;;;;;;1845:18;;;;;;;;;;;;;;;;;;1831:6;;;:12;1823:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1823:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1884:1;1877:8;;1433:460;;;;;;:::o;2714:175::-;2841:18;;;;;;;;;;;;;;;;;2774:7;;2806;;;;2832;;;;2824:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;20262:791:0;20360:7;;;;;;4563:35;20395:16;;20387:25;;;;;;20485:6;4409:35;20466:6;:16;:25;;;;;;;;20451:40;;4998:35;20506:4;:22;20502:149;;;20555:16;20566:4;20555:10;:16::i;:::-;20545:26;;20502:149;;;20623:16;20634:4;20623:10;:16::i;:::-;20613:26;;20502:149;20707:5;20689:23;;20699:5;20689:15;;:7;:15;:23;;;;;;;;20663:49;;5083:35;20727:15;:33;20723:323;;;20785:27;20796:15;20785:10;:27::i;:::-;4289:3;20777:51;;;;;;20723:323;20888:42;20914:15;20888:25;:42::i;:::-;20870:60;-1:-1:-1;20953:69:0;20964:46;4289:3;20984:25;;;20964:46;;;;;20870:60;20953:10;:69::i;:::-;21024:9;20945:89;;;;20723:323;20262:791;;;;;;;;;;;:::o;28765:2798::-;28819:7;;;;;28938:34;28933:39;;28929:143;;28982:34;28975:41;;;;;29036:34;4409:35;29022:11;;:48;29018:52;;28929:143;29106:34;29101:39;;29097:143;;29150:34;29143:41;;;;;29204:34;4409:35;29190:11;;:48;29186:52;;29097:143;29274:34;29269:39;;29265:143;;29318:34;29311:41;;;;;29372:34;4409:35;29358:11;;:48;29354:52;;29265:143;29442:34;29437:39;;29433:143;;29486:34;29479:41;;;;;29540:34;4409:35;29526:11;;:48;29522:52;;29433:143;29610:34;29605:39;;29601:143;;29654:34;29647:41;;;;;29708:34;4409:35;29694:11;;:48;29690:52;;29601:143;29778:34;29773:39;;29769:143;;29822:34;29815:41;;;;;29876:34;4409:35;29862:11;;:48;29858:52;;29769:143;29946:34;29941:39;;29937:143;;29990:34;29983:41;;;;;30044:34;4409:35;30030:11;;:48;30026:52;;29937:143;30114:34;30109:39;;30105:143;;30158:34;30151:41;;;;;30212:34;4409:35;30198:11;;:48;30194:52;;30105:143;30283:11;;;;-1:-1:-1;30283:11:0;;-1:-1:-1;4409:35:0;30309:5;;;:15;;-1:-1:-1;30390:35:0;30347:39;;;30342:45;;:83;30335:90;;;;;4409:35;30431:5;;;:15;;-1:-1:-1;30541:35:0;30498;:39;;;30493:45;;:83;30486:90;;;;;4409:35;30582:5;;;:15;;-1:-1:-1;30692:35:0;30649;:39;;;30644:45;;:83;30637:90;;;;;4409:35;30733:5;;;:15;;-1:-1:-1;30843:35:0;30800;:39;;;30795:45;;:83;30788:90;;;;;4409:35;30884:5;;;:15;;-1:-1:-1;30994:35:0;30951;:39;;;30946:45;;:83;30939:90;;;;;4409:35;31035:5;;;:15;;-1:-1:-1;31145:35:0;31102;:39;;;31097:45;;:83;31090:90;;;;;4409:35;31186:5;;;:15;;-1:-1:-1;31296:35:0;31253;:39;;;31248:45;;:83;31241:90;;;;;4409:35;31337:5;;;:15;;-1:-1:-1;31447:35:0;31404;:39;;;31399:45;;:83;31392:90;;;;;28765:2798;-1:-1:-1;;;;;28765:2798:0:o;21224:823::-;21278:7;;;;4486:35;21422:12;;21418:156;;21465:22;4409:35;21475:1;:11;21465:9;:22::i;:::-;21502:11;;;;;;;;;;;4409:35;21547:15;;-1:-1:-1;21451:36:0;-1:-1:-1;21418:156:0;4409:35;21682:1;:11;21678:305;;;-1:-1:-1;4289:3:0;21710:262;21744:1;21740;:5;;;21710:262;;;4409:35;21776:5;;;21775:17;;-1:-1:-1;4486:35:0;21832:12;;21828:129;;21869:7;;;;;;21923:14;21931:5;;;21923:14;;;21916:21;;;;;21828:129;21747:3;;21710:262;;;4806:33;4723;22002:19;;:37;21995:44;;21224:823;;;;;;;:::o;32253:3216::-;32307:7;32691:18;4409:35;32405:38;;;32489:5;;;:15;;;32576:5;;;:15;;;32663:5;;;:15;;;32687:22;;;32517:18;32513:22;;;32604:18;32600:22;;;;32593:29;32680;;32405:38;;32750:5;;;:15;32746:19;;32774:1;32778:18;32774:22;32767:29;;;;4409:35;32841:1;32837;:5;:15;;;;;;;;32833:19;;32861:1;32865:18;32861:22;32854:29;;;;4409:35;32928:1;32924;:5;:15;;;;;;;;32920:19;;32948:1;32952:18;32948:22;32941:29;;;;4409:35;33015:1;33011;:5;:15;;;;;;;;33007:19;;33035:1;33039:18;33035:22;33028:29;;;;4409:35;33102:1;33098;:5;:15;;;;;;;;33094:19;;33122:1;33126:18;33122:22;33115:29;;;;4409:35;33189:1;33185;:5;:15;;;;;;;;33181:19;;33209:1;33213:18;33209:22;33202:29;;;;4409:35;33276:1;33272;:5;:15;;;;;;;;33268:19;;33296:1;33300:18;33296:22;33289:29;;;;4409:35;33363:1;33359;:5;:15;;;;;;;;33355:19;;33383:1;33387:18;33383:22;33376:29;;;;4409:35;33450:1;33446;:5;:15;;;;;;;;33442:19;;33470:1;33474:18;33470:22;33463:29;;;;4409:35;33537:1;33533;:5;:15;;;;;;;;33529:19;;33557:1;33561:18;33557:22;33550:29;;;;4409:35;33624:1;33620;:5;:15;;;;;;;;33616:19;;33644:1;33648:18;33644:22;33637:29;;;;4409:35;33711:1;33707;:5;:15;;;;;;;;33703:19;;33731:1;33735:18;33731:22;33724:29;;;;4409:35;33798:1;33794;:5;:15;;;;;;;;33790:19;;33818:1;33822:18;33818:22;33811:29;;;;4409:35;33885:1;33881;:5;:15;;;;;;;;33877:19;;33905:1;33909:18;33905:22;33898:29;;;;4409:35;33972:1;33968;:5;:15;;;;;;;;33964:19;;33992:1;33996:18;33992:22;33985:29;;;;4409:35;34059:1;34055;:5;:15;;;;;;;34150:18;34055:15;;;34072:29;;;34144:24;:28;;4409:35;34144:38;;34055:15;-1:-1:-1;34254:35:0;34250:39;;34249:46;34245:137;;34347:35;34309;34303:41;;:79;34297:85;;34245:137;34426:35;34422:39;;34421:46;34417:137;;34519:35;34481;34475:41;;:79;34469:85;;34417:137;34598:35;34594:39;;34593:46;34589:137;;34691:35;34653;34647:41;;:79;34641:85;;34589:137;34770:35;34766:39;;34765:46;34761:137;;34863:35;34825;34819:41;;:79;34813:85;;34761:137;34942:35;34938:39;;34937:46;34933:137;;35035:35;34997;34991:41;;:79;34985:85;;34933:137;35114:35;35110:39;;35109:46;35105:137;;35207:35;35169;35163:41;;:79;35157:85;;35105:137;35286:35;35282:39;;35281:46;35277:137;;35379:35;35341;35335:41;;:79;35329:85;;35277:137;-1:-1:-1;35458:3:0;;32253:3216;-1:-1:-1;;;32253:3216:0:o;23079:520::-;23149:5;4241:2;4289:3;23149:5;23239:185;23255:2;23246:11;;:2;23251:1;23246:6;:11;;;23239:185;;;23298:1;23286:13;23287:7;;;23286:13;;;-1:-1:-1;23338:2:0;23318:11;:16;;;;;;;;;;;;:22;23314:98;;23364:3;23359:8;;23314:98;;;23409:3;23404:8;;23314:98;23239:185;;;23459:2;23440:11;:15;;;;;;;;;;;;:21;23436:49;;23483:2;23476:9;;;;23436:49;23519:2;23500:11;:15;;;;;;;;;;;;:21;23496:49;;23543:2;23536:9;;;;24166:3864;24239:7;24259:10;24285:11;24272:2;24259:15;;24299:1;24285:15;;24331:10;24318:23;;24324:2;24319;:7;24318:23;;;;;24313:28;;24350:2;24355:33;24350:38;24343:45;;;;24443:10;24430:23;;24436:2;24431;:7;24430:23;;;;;24425:28;;24462:2;24467:33;24462:38;24455:45;;;;24555:10;24542:23;;24548:2;24543;:7;24542:23;;;;;24537:28;;24574:2;24579:33;24574:38;24567:45;;;;24667:10;24654:23;;24660:2;24655;:7;24654:23;;;;;24649:28;;24686:2;24691:33;24686:38;24679:45;;;;24779:10;24766:23;;24772:2;24767;:7;24766:23;;;;;24761:28;;24798:2;24803:33;24798:38;24791:45;;;;24891:10;24878:23;;24884:2;24879;:7;24878:23;;;;;24873:28;;24910:2;24915:33;24910:38;24903:45;;;;25003:10;24990:23;;24996:2;24991;:7;24990:23;;;;;24985:28;;25022:2;25027:33;25022:38;25015:45;;;;25115:10;25102:23;;25108:2;25103;:7;25102:23;;;;;25097:28;;25134:2;25139:33;25134:38;25127:45;;;;25227:10;25214:23;;25220:2;25215;:7;25214:23;;;;;25209:28;;25246:2;25251:33;25246:38;25239:45;;;;25339:10;25326:23;;25332:2;25327;:7;25326:23;;;;;25321:28;;25358:2;25363:33;25358:38;25351:45;;;;25451:10;25438:23;;25444:2;25439;:7;25438:23;;;;;25433:28;;25470:2;25475:33;25470:38;25463:45;;;;25563:10;25550:23;;25556:2;25551;:7;25550:23;;;;;25545:28;;25582:2;25587:33;25582:38;25575:45;;;;25675:10;25662:23;;25668:2;25663;:7;25662:23;;;;;25657:28;;25694:2;25699:33;25694:38;25687:45;;;;25787:10;25774:23;;25780:2;25775;:7;25774:23;;;;;25769:28;;25806:2;25811:33;25806:38;25799:45;;;;25899:10;25886:23;;25892:2;25887;:7;25886:23;;;;;25881:28;;25918:2;25923:33;25918:38;25911:45;;;;26011:10;25998:23;;26004:2;25999;:7;25998:23;;;;;25993:28;;26030:2;26035:33;26030:38;26023:45;;;;26123:10;26110:23;;26116:2;26111;:7;26110:23;;;;;26105:28;;26142:2;26147:33;26142:38;26135:45;;;;26235:10;26222:23;;26228:2;26223;:7;26222:23;;;;;26217:28;;26254:2;26259:33;26254:38;26247:45;;;;26347:10;26334:23;;26340:2;26335;:7;26334:23;;;;;26329:28;;26366:2;26371:33;26366:38;26359:45;;;;26459:10;26446:23;;26452:2;26447;:7;26446:23;;;;;26441:28;;26478:2;26483:33;26478:38;26471:45;;;;26571:10;26558:23;;26564:2;26559;:7;26558:23;;;;;26553:28;;26590:2;26595:33;26590:38;26583:45;;;;26683:10;26670:23;;26676:2;26671;:7;26670:23;;;;;26665:28;;26702:2;26707:33;26702:38;26695:45;;;;26795:10;26782:23;;26788:2;26783;:7;26782:23;;;;;26777:28;;26814:2;26819:33;26814:38;26807:45;;;;26907:10;26894:23;;26900:2;26895;:7;26894:23;;;;;26889:28;;26926:2;26931:33;26926:38;26919:45;;;;27019:10;27006:23;;27012:2;27007;:7;27006:23;;;;;27001:28;;27038:2;27043:33;27038:38;27031:45;;;;27131:10;27118:23;;27124:2;27119;:7;27118:23;;;;;27113:28;;27150:2;27155:33;27150:38;27143:45;;;;27243:10;27230:23;;27236:2;27231;:7;27230:23;;;;;27225:28;;27262:2;27267:33;27262:38;27255:45;;;;27355:10;27342:23;;27348:2;27343;:7;27342:23;;;;;27337:28;;27374:2;27379:33;27374:38;27367:45;;;;27467:10;27454:23;;27460:2;27455;:7;27454:23;;;;;27449:28;;27486:2;27491:33;27486:38;27479:45;;;;27579:10;27566:23;;27572:2;27567;:7;27566:23;;;;;27561:28;;27598:2;27603:33;27598:38;27591:45;;;;27691:10;27678:23;;27684:2;27679;:7;27678:23;;;;;27673:28;;27710:2;27715:33;27710:38;27703:45;;;;27803:10;27790:23;;27796:2;27791;:7;27790:23;;;;;27785:28;;27822:2;27827:33;27822:38;27815:45;;;;27961:10;27954:17;;4143:1;27954:17;;;;27948:2;27912:33;27906:3;:39;;;;;;;;:44;:66;;24166:3864;-1:-1:-1;;;;;24166:3864:0:o;22169:542::-;22223:5;;;22276:3;22271:8;;22267:414;;;22333:85;22345:1;22340:2;:6;22333:85;;;22367:8;;;;;22374:1;22394:8;;;;;22333:85;;;22267:414;;;-1:-1:-1;22511:3:0;22496:174;22520:1;22516;:5;;;22496:174;;;22562:8;;;;;22555:16;;22551:104;;22596:8;;;;;;;;;22627;;;;22551:104;22523:7;;;;;;22496:174;

Swarm Source

bzzr://643f8fa590014b530b08fc245df73db4f108f86c4dfe53c7a74fb2021a9381fa
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

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