Contract 0x0b712301a34F8Adb297F0b6808503c6278E3aa0B

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x057c7222daca83009716881980a4badbac43050c46bc9d320d98552042d275ee60398932021-03-27 7:54:2688 days 7 hrs agoMorphose: Deployer IN  0x0b712301a34f8adb297f0b6808503c6278e3aa0b0 BNB0.00014107
0xb9f1059caba0e97bf7e9e917792c3902b6887b6ae924695dec441d0c04d244ce60389662021-03-27 7:08:0588 days 8 hrs agoMorphose: Deployer IN  0x0b712301a34f8adb297f0b6808503c6278e3aa0b0 BNB0.00996982
0xbd6517445fd27a0baf00eee7835969deefd7ac55900fe6837a047a179ebba40460164792021-03-26 11:38:5589 days 4 hrs agoMorphose: Deployer IN  0x0b712301a34f8adb297f0b6808503c6278e3aa0b0 BNB0.01993988
0xe5b64eb70e10762ab91a4b89c8620b1d43bcae3dd4afe7a8ec6266fa9c36957160164772021-03-26 11:38:4989 days 4 hrs agoMorphose: Deployer IN  0x0b712301a34f8adb297f0b6808503c6278e3aa0b0 BNB0.01993988
0xe0f31b14729ad85b9475fb5ecb6ce315f372387ebd071513c3368675ab2daa9d60164752021-03-26 11:38:4389 days 4 hrs agoMorphose: Deployer IN  0x0b712301a34f8adb297f0b6808503c6278e3aa0b0 BNB0.01993964
0xcee1efbc307da94104e40d01675e672a710e36f66a75fd5e4991767be5ee16fe60164732021-03-26 11:38:3789 days 4 hrs agoMorphose: Deployer IN  0x0b712301a34f8adb297f0b6808503c6278e3aa0b0 BNB0.01985564
0x0a4deaae5070704f7115a0623864320dbf3d754abe596c8046500c399f7c0aa360164702021-03-26 11:38:2889 days 4 hrs agoMorphose: Deployer IN  Contract Creation0 BNB0.02577972
[ Download CSV Export 
Latest 5 internal transactions
Parent Txn Hash Block From To Value
0xb9f1059caba0e97bf7e9e917792c3902b6887b6ae924695dec441d0c04d244ce60389662021-03-27 7:08:0588 days 8 hrs ago 0x0b712301a34f8adb297f0b6808503c6278e3aa0b  Contract Creation0 BNB
0xbd6517445fd27a0baf00eee7835969deefd7ac55900fe6837a047a179ebba40460164792021-03-26 11:38:5589 days 4 hrs ago 0x0b712301a34f8adb297f0b6808503c6278e3aa0b  Contract Creation0 BNB
0xe5b64eb70e10762ab91a4b89c8620b1d43bcae3dd4afe7a8ec6266fa9c36957160164772021-03-26 11:38:4989 days 4 hrs ago 0x0b712301a34f8adb297f0b6808503c6278e3aa0b  Contract Creation0 BNB
0xe0f31b14729ad85b9475fb5ecb6ce315f372387ebd071513c3368675ab2daa9d60164752021-03-26 11:38:4389 days 4 hrs ago 0x0b712301a34f8adb297f0b6808503c6278e3aa0b  Contract Creation0 BNB
0xcee1efbc307da94104e40d01675e672a710e36f66a75fd5e4991767be5ee16fe60164732021-03-26 11:38:3789 days 4 hrs ago 0x0b712301a34f8adb297f0b6808503c6278e3aa0b  Contract Creation0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MorphoseAdmin

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-03-26
*/

// File: contracts/Morph.sol

pragma solidity ^0.8.0;

interface Morph {
    function poseidon(bytes32[2] memory) external pure returns (bytes32);
}

// File: contracts/MerkleTree.sol

pragma solidity ^0.8.0;


uint256 constant MERKLE_DEPTH = 20;
uint256 constant MERKLE_LEAVES = 1 << MERKLE_DEPTH;

library MerkleTree {
    struct Data {
        Morph hasher;
        mapping(bytes32 => bool) roots;
        mapping(uint256 => bytes32) tree;
        uint256 numLeaves;
    }

    function insert(Data storage self, bytes32 value)
        internal
        returns (uint256 index)
    {
        require(self.numLeaves < MERKLE_LEAVES, "Slots exhausted");

        index = self.numLeaves;
        self.numLeaves++;

        uint256 node = MERKLE_LEAVES + index;
        self.tree[node] = value;

        while (node > 1) {
            node /= 2;
            self.tree[node] = self.hasher.poseidon(
                [self.tree[node * 2], self.tree[node * 2 + 1]]
            );
        }

        self.roots[self.tree[1]] = true;
    }

    function getPath(Data storage self, uint256 index)
        internal
        view
        returns (bytes32[MERKLE_DEPTH] memory hashes)
    {
        require(index < self.numLeaves, "Index out of bounds");

        uint256 node = MERKLE_LEAVES + index;

        for (uint256 i = 0; i < MERKLE_DEPTH; i++) {
            hashes[i] = self.tree[node ^ 1];
            node /= 2;
        }
    }
}

// File: contracts/MembershipVerifier.sol

//
// Copyright 2017 Christian Reitwiessner
// 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.
//
// 2019 OKIMS
//      ported to solidity 0.6
//      fixed linter warnings
//      added requiere error messages
//
//
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
library Pairing {
    struct G1Point {
        uint X;
        uint Y;
    }
    // Encoding of field elements is: X[0] * z + X[1]
    struct G2Point {
        uint[2] X;
        uint[2] Y;
    }
    /// @return the generator of G1
    function P1() internal pure returns (G1Point memory) {
        return G1Point(1, 2);
    }
    /// @return the generator of G2
    function P2() internal pure returns (G2Point memory) {
        // Original code point
        return G2Point(
            [11559732032986387107991004021392285783925812861821192530917403151452391805634,
             10857046999023057135944570762232829481370756359578518086990519993285655852781],
            [4082367875863433681332203403145435568316851327593401208105741076214120093531,
             8495653923123431417604973247489272438418190587263600148770280649306958101930]
        );

/*
        // Changed by Jordi point
        return G2Point(
            [10857046999023057135944570762232829481370756359578518086990519993285655852781,
             11559732032986387107991004021392285783925812861821192530917403151452391805634],
            [8495653923123431417604973247489272438418190587263600148770280649306958101930,
             4082367875863433681332203403145435568316851327593401208105741076214120093531]
        );
*/
    }
    /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.
    function negate(G1Point memory p) internal pure returns (G1Point memory r) {
        // The prime q in the base field F_q for G1
        uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;
        if (p.X == 0 && p.Y == 0)
            return G1Point(0, 0);
        return G1Point(p.X, q - (p.Y % q));
    }
    /// @return r the sum of two points of G1
    function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {
        uint[4] memory input;
        input[0] = p1.X;
        input[1] = p1.Y;
        input[2] = p2.X;
        input[3] = p2.Y;
        bool success;
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)
            // Use "invalid" to make gas estimation work
            switch success case 0 { invalid() }
        }
        require(success,"pairing-add-failed");
    }
    /// @return r the product of a point on G1 and a scalar, i.e.
    /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.
    function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {
        uint[3] memory input;
        input[0] = p.X;
        input[1] = p.Y;
        input[2] = s;
        bool success;
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)
            // Use "invalid" to make gas estimation work
            switch success case 0 { invalid() }
        }
        require (success,"pairing-mul-failed");
    }
    /// @return the result of computing the pairing check
    /// e(p1[0], p2[0]) *  .... * e(p1[n], p2[n]) == 1
    /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should
    /// return true.
    function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {
        require(p1.length == p2.length,"pairing-lengths-failed");
        uint elements = p1.length;
        uint inputSize = elements * 6;
        uint[] memory input = new uint[](inputSize);
        for (uint i = 0; i < elements; i++)
        {
            input[i * 6 + 0] = p1[i].X;
            input[i * 6 + 1] = p1[i].Y;
            input[i * 6 + 2] = p2[i].X[0];
            input[i * 6 + 3] = p2[i].X[1];
            input[i * 6 + 4] = p2[i].Y[0];
            input[i * 6 + 5] = p2[i].Y[1];
        }
        uint[1] memory out;
        bool success;
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)
            // Use "invalid" to make gas estimation work
            switch success case 0 { invalid() }
        }
        require(success,"pairing-opcode-failed");
        return out[0] != 0;
    }
    /// Convenience method for a pairing check for two pairs.
    function pairingProd2(G1Point memory a1, G2Point memory a2, G1Point memory b1, G2Point memory b2) internal view returns (bool) {
        G1Point[] memory p1 = new G1Point[](2);
        G2Point[] memory p2 = new G2Point[](2);
        p1[0] = a1;
        p1[1] = b1;
        p2[0] = a2;
        p2[1] = b2;
        return pairing(p1, p2);
    }
    /// Convenience method for a pairing check for three pairs.
    function pairingProd3(
            G1Point memory a1, G2Point memory a2,
            G1Point memory b1, G2Point memory b2,
            G1Point memory c1, G2Point memory c2
    ) internal view returns (bool) {
        G1Point[] memory p1 = new G1Point[](3);
        G2Point[] memory p2 = new G2Point[](3);
        p1[0] = a1;
        p1[1] = b1;
        p1[2] = c1;
        p2[0] = a2;
        p2[1] = b2;
        p2[2] = c2;
        return pairing(p1, p2);
    }
    /// Convenience method for a pairing check for four pairs.
    function pairingProd4(
            G1Point memory a1, G2Point memory a2,
            G1Point memory b1, G2Point memory b2,
            G1Point memory c1, G2Point memory c2,
            G1Point memory d1, G2Point memory d2
    ) internal view returns (bool) {
        G1Point[] memory p1 = new G1Point[](4);
        G2Point[] memory p2 = new G2Point[](4);
        p1[0] = a1;
        p1[1] = b1;
        p1[2] = c1;
        p1[3] = d1;
        p2[0] = a2;
        p2[1] = b2;
        p2[2] = c2;
        p2[3] = d2;
        return pairing(p1, p2);
    }
}
contract MembershipVerifier {
    using Pairing for *;
    struct VerifyingKey {
        Pairing.G1Point alfa1;
        Pairing.G2Point beta2;
        Pairing.G2Point gamma2;
        Pairing.G2Point delta2;
        Pairing.G1Point[] IC;
    }
    struct Proof {
        Pairing.G1Point A;
        Pairing.G2Point B;
        Pairing.G1Point C;
    }
    function verifyingKey() internal pure returns (VerifyingKey memory vk) {
        vk.alfa1 = Pairing.G1Point(19999268883299812380118267745389058698359487558742858385672801683947009174841,10979465955338708482481933698167832325746603808865456750985292287877353355870);
        vk.beta2 = Pairing.G2Point([6068181524513427278587143754114992710203920567465128023830932235519822136628,16579293707019070536109697385456617347080855615194695274360466897444993251], [10091094195423517525628188919723607870162196765642914096795805721764659872311,13723776030631949818632750387918069001653144993639245536406298986026264197577]);
        vk.gamma2 = Pairing.G2Point([11559732032986387107991004021392285783925812861821192530917403151452391805634,10857046999023057135944570762232829481370756359578518086990519993285655852781], [4082367875863433681332203403145435568316851327593401208105741076214120093531,8495653923123431417604973247489272438418190587263600148770280649306958101930]);
        vk.delta2 = Pairing.G2Point([11559732032986387107991004021392285783925812861821192530917403151452391805634,10857046999023057135944570762232829481370756359578518086990519993285655852781], [4082367875863433681332203403145435568316851327593401208105741076214120093531,8495653923123431417604973247489272438418190587263600148770280649306958101930]);
        vk.IC = new Pairing.G1Point[](4);
        vk.IC[0] = Pairing.G1Point(1079420831454985419248774125551839104961637639291459667533218182143041371810,17039110079959747649145914288243287982936033625997476751651169264994325890340);
        vk.IC[1] = Pairing.G1Point(12511859808514735597224780617509045821499483439843284007557068056972330496480,997227388947331052357481800682863872352525852736840780855125186785416544744);
        vk.IC[2] = Pairing.G1Point(14054648376065458965574031677607130893156944233741248968416170960442389869982,6837841949371117241092620520200022176087379095803818691557939890882667007650);
        vk.IC[3] = Pairing.G1Point(1172112811221215404787133472473218088776994768730531545732108558323402657475,5798126020275162237488557905091686019669976137618701955940067805955670887872);

    }
    function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {
        uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;
        VerifyingKey memory vk = verifyingKey();
        require(input.length + 1 == vk.IC.length,"verifier-bad-input");
        // Compute the linear combination vk_x
        Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);
        for (uint i = 0; i < input.length; i++) {
            require(input[i] < snark_scalar_field,"verifier-gte-snark-scalar-field");
            vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));
        }
        vk_x = Pairing.addition(vk_x, vk.IC[0]);
        if (!Pairing.pairingProd4(
            Pairing.negate(proof.A), proof.B,
            vk.alfa1, vk.beta2,
            vk_x, vk.gamma2,
            proof.C, vk.delta2
        )) return 1;
        return 0;
    }
    /// @return r  bool true if proof is valid
    function verifyProof(
            uint[2] memory a,
            uint[2][2] memory b,
            uint[2] memory c,
            uint[3] memory input
        ) public view returns (bool r) {
        Proof memory proof;
        proof.A = Pairing.G1Point(a[0], a[1]);
        proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);
        proof.C = Pairing.G1Point(c[0], c[1]);
        uint[] memory inputValues = new uint[](input.length);
        for(uint i = 0; i < input.length; i++){
            inputValues[i] = input[i];
        }
        if (verify(inputValues, proof) == 0) {
            return true;
        } else {
            return false;
        }
    }
}

// File: contracts/SafeMath.sol

pragma solidity ^0.8.0;

library SafeMath {
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
    assert(c / a == b);
    return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a / b;
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }

    function ceil(uint256 a, uint256 m) internal pure returns (uint256) {
        uint256 c = add(a,m);
        uint256 d = sub(c,1);
        return mul(div(d,m),m);
    }
}

// File: contracts/Morphose.sol

pragma solidity ^0.8.0;




uint256 constant BN128_SCALAR_FIELD = 21888242871839275222246405745257275088548364400416034343698204186575808495617;

contract Morphose  {
    using MerkleTree for MerkleTree.Data;

    struct WithdrawProof {
        address payable recipent;
        bytes32 merkleRoot;
        bytes32 unitNullifier;
        bytes32[8] proof;
    }

    MembershipVerifier internal verifier;
    MerkleTree.Data internal merkleTree;
    mapping(bytes32 => bool) public withdrawn;
    uint256 public denomination;
    uint256 public currentUnits;
    uint256 public anonymitySet;

    event Deposit(bytes32 note, uint256 index, uint256 units);
    event Withdrawal(bytes32 unitNullifier);

    constructor(
        address morphAddr,
        address verifierAddr,
        uint256 denomination_
    ) {
        verifier = MembershipVerifier(verifierAddr);
        merkleTree.hasher = Morph(morphAddr);
        denomination = denomination_;
    }

    function deposit(bytes32 note) public payable {
        require(uint256(note) < BN128_SCALAR_FIELD, "Invalid note");
        require(msg.value >= denomination, "Not enough funds sent");
        require(
            msg.value % denomination == 0,
            "Value needs to be exact multiple of denomination"
        );

        uint256 units = msg.value / denomination;
        bytes32 leaf = merkleTree.hasher.poseidon([note, bytes32(units)]);
        uint256 index = merkleTree.insert(leaf);
        currentUnits += units;
        anonymitySet++;
        emit Deposit(note, index, units);
    }

    function withdraw(WithdrawProof calldata args) public {
        require(merkleTree.roots[args.merkleRoot], "Invalid merkle tree root");
        require(
            !withdrawn[args.unitNullifier],
            "Deposit has been already withdrawn"
        );

        require(
            verifyMembershipProof(
                args.proof,
                args.merkleRoot,
                args.unitNullifier,
                getContextHash(args.recipent, msg.sender)
            ),
            "Invalid deposit proof"
        );

        withdrawn[args.unitNullifier] = true;
        currentUnits--;

        if (currentUnits == 0) {
            anonymitySet = 0;
        }

        args.recipent.transfer(denomination - onePercent(denomination));
        payable(0x3e4Ff40a827d4Ede5336Fd49fBCbfe02c6530375).transfer(onePercent(denomination));//%1 to treasury
        emit Withdrawal(args.unitNullifier);
    }

    function getMerklePath(uint256 index)
        public
        view
        returns (bytes32[MERKLE_DEPTH] memory)
    {
        return merkleTree.getPath(index);
    }

    function getContextHash(
        address recipent,
        address relayer
    ) public pure returns (bytes32) {
        return keccak256(abi.encode(recipent, relayer)) >> 3;
    }

    function onePercent(uint256 _value) public view returns (uint256)  {
        uint256 roundValue = SafeMath.ceil(_value, 100);
        uint256 onePercent = SafeMath.div(SafeMath.mul(roundValue, 100), 10000);
        return onePercent;
    }

    function maxSlots() public pure returns (uint256) {
        return MERKLE_LEAVES;
    }

    function usedSlots() public view returns (uint256) {
        return merkleTree.numLeaves;
    }

    function verifyMembershipProof(
        bytes32[8] memory proof,
        bytes32 merkleRoot,
        bytes32 unitNullifier,
        bytes32 context
    ) internal view returns (bool) {
        uint256[2] memory a = [uint256(proof[0]), uint256(proof[1])];
        uint256[2][2] memory b =
            [
                [uint256(proof[2]), uint256(proof[3])],
                [uint256(proof[4]), uint256(proof[5])]
            ];
        uint256[2] memory c = [uint256(proof[6]), uint256(proof[7])];
        uint256[3] memory input =
            [uint256(merkleRoot), uint256(unitNullifier), uint256(context)];
        return verifier.verifyProof(a, b, c, input);
    }
}

// File: contracts/MorphoseAdmin.sol

pragma solidity ^0.8.0;


contract MorphoseAdmin {
    struct Entry {
        uint256 index;
        address addr;
    }

    address public owner = msg.sender;
    address public morph;
    address public verifier;

    uint256[] internal denominations;
    mapping(uint256 => Entry) internal morphoses;

    event MorphoseDeployed(uint256 denomination, address addr);
    event MorphoseRemoved(uint256 denomination, address addr);

    constructor(address morph_, address verifier_) {
        morph = morph_;
        verifier = verifier_;
    }

    function transferOwner(address _owner) public restricted {
        owner = _owner;
    }

    modifier restricted() {
        require(
            msg.sender == owner,
            "This function is restricted to the contract's owner"
        );
        _;
    }

    function createMorphose(uint256 denomination) public restricted {
        Morphose newMorphose = new Morphose(morph, verifier, denomination);
        Entry storage entry = morphoses[denomination];

        if (entry.addr == address(0)) {
            entry.index = denominations.length;
            denominations.push(denomination);
        }

        entry.addr = address(newMorphose);
        emit MorphoseDeployed(denomination, address(newMorphose));
    }

    function getDenominations() public view returns (uint256[] memory) {
        return denominations;
    }

    function getMorphose(uint256 denomination) public view returns (address) {
        return morphoses[denomination].addr;
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"morph_","type":"address"},{"internalType":"address","name":"verifier_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"denomination","type":"uint256"},{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"MorphoseDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"denomination","type":"uint256"},{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"MorphoseRemoved","type":"event"},{"inputs":[{"internalType":"uint256","name":"denomination","type":"uint256"}],"name":"createMorphose","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getDenominations","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"denomination","type":"uint256"}],"name":"getMorphose","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"morph","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"verifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052600080546001600160a01b0319163317905534801561002257600080fd5b506040516115fb3803806115fb8339810160408190526100419161008e565b600180546001600160a01b039384166001600160a01b031991821617909155600280549290931691161790556100c0565b80516001600160a01b038116811461008957600080fd5b919050565b600080604083850312156100a0578182fd5b6100a983610072565b91506100b760208401610072565b90509250929050565b61152c806100cf6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063566037321161005b57806356603732146100c85780636511886a146100d05780638da5cb5b146100e3578063d95a1c76146100eb5761007d565b80632b7ac3f314610082578063360b592e146100a05780634fb2e45d146100b5575b600080fd5b61008a610100565b604051610097919061037c565b60405180910390f35b6100b36100ae366004610364565b61010f565b005b6100b36100c3366004610336565b610249565b61008a610295565b61008a6100de366004610364565b6102a4565b61008a6102c2565b6100f36102d1565b60405161009791906103b4565b6002546001600160a01b031681565b6000546001600160a01b031633146101425760405162461bcd60e51b8152600401610139906103f8565b60405180910390fd5b6001546002546040516000926001600160a01b03908116921690849061016790610329565b61017393929190610390565b604051809103906000f08015801561018f573d6000803e3d6000fd5b5060008381526004602052604090206001810154919250906001600160a01b03166101ed57600380548083556001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b018390555b6001810180546001600160a01b0319166001600160a01b0384161790556040517fd72b015936a23331038af33ade5de83216fc03b639b1dde76a59fb656d6f24c69061023c908590859061044b565b60405180910390a1505050565b6000546001600160a01b031633146102735760405162461bcd60e51b8152600401610139906103f8565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b6000908152600460205260409020600101546001600160a01b031690565b6000546001600160a01b031681565b6060600380548060200260200160405190810160405280929190818152602001828054801561031f57602002820191906000526020600020905b81548152602001906001019080831161030b575b5050505050905090565b6110948061046383390190565b600060208284031215610347578081fd5b81356001600160a01b038116811461035d578182fd5b9392505050565b600060208284031215610375578081fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6020808252825182820181905260009190848201906040850190845b818110156103ec578351835292840192918401916001016103d0565b50909695505050505050565b60208082526033908201527f546869732066756e6374696f6e206973207265737472696374656420746f207460408201527234329031b7b73a3930b1ba13b99037bbb732b960691b606082015260800190565b9182526001600160a01b031660208201526040019056fe608060405234801561001057600080fd5b5060405161109438038061109483398101604081905261002f91610082565b600080546001600160a01b039384166001600160a01b031991821617909155600180549490931693169290921790556006556100bd565b80516001600160a01b038116811461007d57600080fd5b919050565b600080600060608486031215610096578283fd5b61009f84610066565b92506100ad60208501610066565b9150604084015190509250925092565b610fc8806100cc6000396000f3fe60806040526004361061009c5760003560e01c806353daabd31161006457806353daabd3146101505780636e4d6517146101655780638bca6d1614610192578063b214faa5146101a7578063c3018af6146101ba578063cbd69f3f146101da5761009c565b8063080a0330146100a1578063117413d2146100cc5780633823d66c146100ee57806348a1d0ec1461011b5780634cb2e3791461013b575b600080fd5b3480156100ad57600080fd5b506100b66101ef565b6040516100c39190610ce4565b60405180910390f35b3480156100d857600080fd5b506100ec6100e7366004610ba0565b6101f5565b005b3480156100fa57600080fd5b5061010e610109366004610b70565b6103fd565b6040516100c39190610cd9565b34801561012757600080fd5b506100b6610136366004610b70565b610412565b34801561014757600080fd5b506100b6610442565b34801561015c57600080fd5b506100b6610448565b34801561017157600080fd5b50610185610180366004610b70565b61044e565b6040516100c39190610bfb565b34801561019e57600080fd5b506100b6610467565b6100ec6101b5366004610b70565b61046d565b3480156101c657600080fd5b506100b66101d5366004610b18565b61061c565b3480156101e657600080fd5b506100b6610653565b60085481565b60208082013560009081526002909152604090205460ff166102325760405162461bcd60e51b815260040161022990610d32565b60405180910390fd5b60408082013560009081526005602052205460ff16156102645760405162461bcd60e51b815260040161022990610de2565b604080516101008181019092526102b691606084019060089083908390808284376000920191909152505050602083018035906040850135906102b1906102ab9087610afc565b3361061c565b61065a565b6102d25760405162461bcd60e51b815260040161022990610e77565b60408082013560009081526005602052908120805460ff1916600117905560078054916102fe83610f08565b90915550506007546103105760006008555b61031d6020820182610afc565b6001600160a01b03166108fc610334600654610412565b6006546103419190610ef1565b6040518115909202916000818181858888f19350505050158015610369573d6000803e3d6000fd5b50733e4ff40a827d4ede5336fd49fbcbfe02c65303756001600160a01b03166108fc610396600654610412565b6040518115909202916000818181858888f193505050501580156103be573d6000803e3d6000fd5b507f0ce781a18c10c8289803c7c4cfd532d797113c4b41c9701ffad7d0a632ac555b81604001356040516103f29190610ce4565b60405180910390a150565b60056020526000908152604090205460ff1681565b6000806104208360646107a3565b9050600061043a6104328360646107dd565b612710610827565b949350505050565b60045490565b60075481565b610456610add565b610461600183610834565b92915050565b60065481565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181106104ac5760405162461bcd60e51b815260040161022990610e24565b6006543410156104ce5760405162461bcd60e51b815260040161022990610d03565b6006546104db9034610f3a565b156104f85760405162461bcd60e51b815260040161022990610d92565b6000600654346105089190610ebe565b60015460408051808201825285815260208101849052905163014cf2b360e51b81529293506000926001600160a01b039092169163299e56609161054e91600401610c2d565b60206040518083038186803b15801561056657600080fd5b505afa15801561057a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059e9190610b88565b905060006105ad6001836108dd565b905082600760008282546105c19190610ea6565b9091555050600880549060006105d683610f1f565b91905055507fe1f1096fd8bc7d572fb7ad7e4102736b6615500975c0252ea91ef1b765c4989784828560405161060e93929190610ced565b60405180910390a150505050565b600060038383604051602001610633929190610be1565b60405160208183030381529060405280519060200120901c905092915050565b6210000090565b60008060405180604001604052808760006008811061068957634e487b7160e01b600052603260045260246000fd5b60209081029190910151825288810151918101919091526040805160808082018352828b01518284019081526060808d01518185015290835283518085018552918c0151825260a08c015182860152828501919091528251808401845260c08c0151815260e08c015181860152835191820184528a825293810189905280830188905260005492516308a3cff560e11b8152949550909390916001600160a01b0316906311479fea90610746908790879087908790600401610c55565b60206040518083038186803b15801561075e57600080fd5b505afa158015610772573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107969190610b50565b9998505050505050505050565b6000806107b08484610a86565b905060006107bf826001610ab3565b90506107d46107ce8286610827565b856107dd565b95945050505050565b6000826107ec57506000610461565b60006107f88385610ed2565b9050826108058583610ebe565b1461082057634e487b7160e01b600052600160045260246000fd5b9392505050565b60008061043a8385610ebe565b61083c610add565b8260030154821061085f5760405162461bcd60e51b815260040161022990610e4a565b600061086e8362100000610ea6565b905060005b60148110156108d5576001821860009081526002860160205260409020548382601481106108b157634e487b7160e01b600052603260045260246000fd5b60200201526108c1600283610ebe565b9150806108cd81610f1f565b915050610873565b505092915050565b600382015460009062100000116109065760405162461bcd60e51b815260040161022990610d69565b50600382018054908190600061091b83610f1f565b90915550600090506109308262100000610ea6565b6000818152600286016020526040902084905590505b6001811115610a545761095a600282610ebe565b8454604080518082019091529192506001600160a01b03169063299e5660908060028089019060009061098e908890610ed2565b81526020019081526020016000205481526020018760020160008660026109b59190610ed2565b6109c0906001610ea6565b8152602001908152602001600020548152506040518263ffffffff1660e01b81526004016109ee9190610c2d565b60206040518083038186803b158015610a0657600080fd5b505afa158015610a1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3e9190610b88565b6000828152600286016020526040902055610946565b50600160008181526002850160209081526040808320548352958301905293909320805460ff19169093179092555090565b600080610a938385610ea6565b90508381101561082057634e487b7160e01b600052600160045260246000fd5b600082821115610ad357634e487b7160e01b600052600160045260246000fd5b6108208284610ef1565b6040518061028001604052806014906020820280368337509192915050565b600060208284031215610b0d578081fd5b813561082081610f7a565b60008060408385031215610b2a578081fd5b8235610b3581610f7a565b91506020830135610b4581610f7a565b809150509250929050565b600060208284031215610b61578081fd5b81518015158114610820578182fd5b600060208284031215610b81578081fd5b5035919050565b600060208284031215610b99578081fd5b5051919050565b60006101608284031215610bb2578081fd5b50919050565b8060005b6002811015610bdb578151845260209384019390910190600101610bbc565b50505050565b6001600160a01b0392831681529116602082015260400190565b6102808101818360005b6014811015610c24578151835260209283019290910190600101610c05565b50505092915050565b60408101818360005b6002811015610c24578151835260209283019290910190600101610c36565b6101608101610c648287610bb8565b60408083018660005b6002811015610c9457610c81838351610bb8565b9183019160209190910190600101610c6d565b50505050610ca560c0830185610bb8565b61010082018360005b6003811015610ccd578151835260209283019290910190600101610cae565b50505095945050505050565b901515815260200190565b90815260200190565b9283526020830191909152604082015260600190565b602080825260159082015274139bdd08195b9bdd59da08199d5b991cc81cd95b9d605a1b604082015260600190565b60208082526018908201527f496e76616c6964206d65726b6c65207472656520726f6f740000000000000000604082015260600190565b6020808252600f908201526e14db1bdd1cc8195e1a185d5cdd1959608a1b604082015260600190565b60208082526030908201527f56616c7565206e6565647320746f206265206578616374206d756c7469706c6560408201526f1037b3103232b737b6b4b730ba34b7b760811b606082015260800190565b60208082526022908201527f4465706f73697420686173206265656e20616c726561647920776974686472616040820152613bb760f11b606082015260800190565b6020808252600c908201526b496e76616c6964206e6f746560a01b604082015260600190565b602080825260139082015272496e646578206f7574206f6620626f756e647360681b604082015260600190565b60208082526015908201527424b73b30b634b2103232b837b9b4ba10383937b7b360591b604082015260600190565b60008219821115610eb957610eb9610f4e565b500190565b600082610ecd57610ecd610f64565b500490565b6000816000190483118215151615610eec57610eec610f4e565b500290565b600082821015610f0357610f03610f4e565b500390565b600081610f1757610f17610f4e565b506000190190565b6000600019821415610f3357610f33610f4e565b5060010190565b600082610f4957610f49610f64565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6001600160a01b0381168114610f8f57600080fd5b5056fea264697066735822122056f601d5b52c9cf1a09e5089f5e42e736d3812dc1508ec73e26306601b916b3e64736f6c63430008000033a26469706673582212202911ef58e424631b81104d64d7d254cffd2f6e564f402065152ed0b727b6fc0e64736f6c63430008000033000000000000000000000000b64adaabe64367eff598e173e4c129f2abcb8c7c000000000000000000000000f90e93bc6a27283947dd06d6f60ac7bc09c5012e

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

000000000000000000000000b64adaabe64367eff598e173e4c129f2abcb8c7c000000000000000000000000f90e93bc6a27283947dd06d6f60ac7bc09c5012e

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b64adaabe64367eff598e173e4c129f2abcb8c7c
Arg [1] : 000000000000000000000000f90e93bc6a27283947dd06d6f60ac7bc09c5012e


Deployed ByteCode Sourcemap

18114:1547:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18287:23;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;18940:469;;;;;;:::i;:::-;;:::i;:::-;;18661:90;;;;;;:::i;:::-;;:::i;18260:20::-;;;:::i;19531:127::-;;;;;;:::i;:::-;;:::i;18220:33::-;;;:::i;19417:106::-;;;:::i;:::-;;;;;;;:::i;18287:23::-;;;-1:-1:-1;;;;;18287:23:0;;:::o;18940:469::-;18828:5;;-1:-1:-1;;;;;18828:5:0;18814:10;:19;18792:120;;;;-1:-1:-1;;;18792:120:0;;;;;;;:::i;:::-;;;;;;;;;19051:5:::1;::::0;19058:8:::1;::::0;19038:43:::1;::::0;19015:20:::1;::::0;-1:-1:-1;;;;;19051:5:0;;::::1;::::0;19058:8:::1;::::0;19068:12;;19038:43:::1;::::0;::::1;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;19092:19:0::1;19114:23:::0;;;:9:::1;:23;::::0;;;;19154:10:::1;::::0;::::1;::::0;19015:66;;-1:-1:-1;19114:23:0;-1:-1:-1;;;;;19154:10:0::1;19150:138;;19209:13;:20:::0;;19195:34;;;19244:32:::1;::::0;::::1;::::0;;19195:11:::1;19244:32:::0;;;;;::::1;::::0;;;19150:138:::1;19300:10;::::0;::::1;:33:::0;;-1:-1:-1;;;;;;19300:33:0::1;-1:-1:-1::0;;;;;19300:33:0;::::1;;::::0;;19349:52:::1;::::0;::::1;::::0;::::1;::::0;19366:12;;19300:33;;19349:52:::1;:::i;:::-;;;;;;;;18923:1;;18940:469:::0;:::o;18661:90::-;18828:5;;-1:-1:-1;;;;;18828:5:0;18814:10;:19;18792:120;;;;-1:-1:-1;;;18792:120:0;;;;;;;:::i;:::-;18729:5:::1;:14:::0;;-1:-1:-1;;;;;;18729:14:0::1;-1:-1:-1::0;;;;;18729:14:0;;;::::1;::::0;;;::::1;::::0;;18661:90::o;18260:20::-;;;-1:-1:-1;;;;;18260:20:0;;:::o;19531:127::-;19595:7;19622:23;;;:9;:23;;;;;:28;;;-1:-1:-1;;;;;19622:28:0;;19531:127::o;18220:33::-;;;-1:-1:-1;;;;;18220:33:0;;:::o;19417:106::-;19466:16;19502:13;19495:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19417:106;:::o;-1:-1:-1:-;;;;;;;;:::o;14:306:1:-;;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;178:23;;-1:-1:-1;;;;;230:31:1;;220:42;;210:2;;281:6;273;266:22;210:2;309:5;84:236;-1:-1:-1;;;84:236:1:o;325:190::-;;437:2;425:9;416:7;412:23;408:32;405:2;;;458:6;450;443:22;405:2;-1:-1:-1;486:23:1;;395:120;-1:-1:-1;395:120:1:o;520:203::-;-1:-1:-1;;;;;684:32:1;;;;666:51;;654:2;639:18;;621:102::o;728:375::-;-1:-1:-1;;;;;986:15:1;;;968:34;;1038:15;;;;1033:2;1018:18;;1011:43;1085:2;1070:18;;1063:34;;;;918:2;903:18;;885:218::o;1108:635::-;1279:2;1331:21;;;1401:13;;1304:18;;;1423:22;;;1108:635;;1279:2;1502:15;;;;1476:2;1461:18;;;1108:635;1548:169;1562:6;1559:1;1556:13;1548:169;;;1623:13;;1611:26;;1692:15;;;;1657:12;;;;1584:1;1577:9;1548:169;;;-1:-1:-1;1734:3:1;;1259:484;-1:-1:-1;;;;;;1259:484:1:o;1748:415::-;1950:2;1932:21;;;1989:2;1969:18;;;1962:30;2028:34;2023:2;2008:18;;2001:62;-1:-1:-1;;;2094:2:1;2079:18;;2072:49;2153:3;2138:19;;1922:241::o;2168:274::-;2342:25;;;-1:-1:-1;;;;;2403:32:1;2398:2;2383:18;;2376:60;2330:2;2315:18;;2297:145::o

Swarm Source

ipfs://2911ef58e424631b81104d64d7d254cffd2f6e564f402065152ed0b727b6fc0e
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.