Contract 0x9af4bec1a30bec47756ecef4cf43b91592121bc9 2

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x61e2cac0bb8f73cc08fa8056db2370b1519edfa5bb989ac517d719488ca0fb51Deploy Vault129369792022-10-15 16:11:0652 days 18 hrs ago0xecea2acc528ed9ed5c713fec1fd79e2487fe8a9d IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x70a83d4b3d9ad0814b51c005ef17d12c80246b83badddc3da166e137ed6293d4Deploy Vault129368562022-10-15 16:06:5252 days 18 hrs ago0x839a853869a358379a5105479bf4501b6b002dc9 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9392
0xbb5fa2e24af9555e1e72f563284bd32798398b9a0544450b0535f5573a35fe03Deploy Vault129367152022-10-15 16:02:0252 days 18 hrs ago0xce4bf00c7cea65a013ba596e845f5cd795554437 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0xdc595b3bc8156973c2695a77d1b2cc59df12d9462984d9267a55699d6e74821eDeploy Vault129365762022-10-15 15:57:1652 days 18 hrs ago0x3e495a498959ca28cdbda6b13494873dd24ddc21 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x765dd3c39dd58841e273ffa40d620c7d8ce97bc734412c8f20d70d78bf2e7a1cDeploy Vault129363702022-10-15 15:50:0852 days 18 hrs ago0xaca49d6ea175eb0f19caafb9528c12061751aeaf IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0xe8352903c142b202e50245d3e6117c9598a44a56589c2fc39049689d0497104cDeploy Vault129362162022-10-15 15:44:5252 days 19 hrs ago0x3dffcbb6cbf7d9912da3c28968631967c2d1cd83 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x054268f4abdbe92386f06e1b3a33fd350818735c90eb9a49ff15b17401ca5b79Deploy Vault110176332022-08-30 17:39:5598 days 17 hrs ago0x167cba3b71b5cd2bd0e8b420fcee51e936df54a0 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0xefeb7129d3b8b5d8019fa8dda64198fe326934f71e69d500cb2fed03cd6e875eDeploy Vault110175152022-08-30 17:35:5198 days 17 hrs ago0xce722a566e4e3003f0062b75b2c0fd0a5192b2c1 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x99ebde4ea3a2c8c3429307acf203f9e4ebeae6009c6452e6ad0e48619b9b76fcDeploy Vault106042552022-08-20 20:42:29108 days 14 hrs ago0x07d85803ca1c9da1bba0c9c23df7e9d60c1b1be9 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9428
0xbbd854d8ce79596563013e78616ea26bf201d3093fe89a69f18f0e1b52cd8811Deploy Vault105154482022-08-18 17:49:43110 days 17 hrs ago0xcbf952d6c415182a4be11404bcf8721e723c9539 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0xcc954c48923c1e38a5a6e3344f5e6c09beeacb92c67ad410c739d845a12c35d3Deploy Vault105153282022-08-18 17:45:39110 days 17 hrs ago0xf13ff495bae41ff0a69776134d4cf7395d5e213d IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9428
0xea56216ec18f9c0787817ff922823aca2f8d3236c64591db4df1c98a65dc915cDeploy Vault105146822022-08-18 17:23:23110 days 17 hrs ago0x210bafcde9b89302acf265085c3fc0b00a32d57c IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9428
0x163d31261feacea6d90701ccfe37b9a95d155069b15fbc3d5a762e24ca8f5d1fDeploy Vault105145842022-08-18 17:20:03110 days 17 hrs ago0x6dbf083d82f84e5f8792affd7851e542b6780ac0 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0xeac8e5debd6e3074629c78a30c0836f331710f6d898d1a234dd609b0d20fc5b9Deploy Vault105145022022-08-18 17:17:15110 days 17 hrs ago0xbffbffa4a316fd63109fb0a78cee395325756d8d IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x4551118a22e2c088c8925cc494a6437844df619eb57e23f0bd79b309a5103fbeDeploy Vault105143752022-08-18 17:12:53110 days 17 hrs ago0x3085cb5ee9547b44d17f50ce08d7c2be9e16ad26 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0xd3943f468ff3103029d36cfc64cd075d7a06e382819df5795227d9b742670d2cDeploy Vault105143222022-08-18 17:11:03110 days 17 hrs ago0xc6069836ac031ae64f3ae4d3880c6cd60d73cfc3 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x0339ce4c8e74ae8f3904bc4a25a16c00a56504dd9d6806e2665c5e460eba54cbDeploy Vault105142402022-08-18 17:08:15110 days 17 hrs ago0x381e32343405714d6c2dd0fcbd0cc4f88d34346a IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x39bd235c1aaa780c1da071a80fb11809e260c815c6aa60c4d667f09e579eb759Deploy Vault105140742022-08-18 17:02:31110 days 17 hrs ago0xd803a3c565f63764c1a8a5b409e81ae6752c9ade IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0xdf2b105c000b5f563d0e097720ec5888245ae989cb46d23c58850c68d8c46a26Deploy Vault103885742022-08-15 17:08:27113 days 17 hrs ago0xf585c03d0e38064595a3c7840db1fe3c1354b3e2 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x981fb6db67e4f9cfcdcb24f38526f1e0919298d48cebba16fccfd5e2ee4b2b32Deploy Vault103884802022-08-15 17:05:15113 days 17 hrs ago0xcfb20d20b1744b38f738223382c40737f7526907 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x9cfe54a4decdc33ad45a08cb1244dbf12bfd1a8c9b69b4f6c36af277f34415a0Deploy Vault103883992022-08-15 17:02:25113 days 17 hrs ago0xb052beb1edbea6c3552edd4889dff0973c4c7cb2 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9428
0x91f01bbb285eb1983729acc1e0a5b6426ac9ecbb915312d1c6370e3eb229c84cDeploy Vault103883072022-08-15 16:59:17113 days 17 hrs ago0x397dacae06384e6985e09c6744a96af4820b7d2c IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x6f9f85c870f76b94928f83794c37bcec13c78a30fa3034ad6f97882bf3045485Deploy Vault103881992022-08-15 16:55:33113 days 17 hrs ago0xb413f5a4b0da38ed52bbea3a91834c93729247a7 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0xae18facda57e6ab5b62fbcef0f33a039c2a37f298fe46e39ba3d36fd5182abbeDeploy Vault103880822022-08-15 16:51:31113 days 17 hrs ago0x4527cd206e82e98ebe18580acc9fc3789669b797 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
0x950a8284b737e36d86f14dd74dc63b38e3cd5d15e73a287feb407817df2f9f59Deploy Vault103879642022-08-15 16:47:27113 days 18 hrs ago0x4015c2706b1546d6910d7890d00de69ae2343b76 IN 0x9af4bec1a30bec47756ecef4cf43b91592121bc90 BTT64.9464
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x61e2cac0bb8f73cc08fa8056db2370b1519edfa5bb989ac517d719488ca0fb51129369792022-10-15 16:11:0652 days 18 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x70a83d4b3d9ad0814b51c005ef17d12c80246b83badddc3da166e137ed6293d4129368562022-10-15 16:06:5252 days 18 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xbb5fa2e24af9555e1e72f563284bd32798398b9a0544450b0535f5573a35fe03129367152022-10-15 16:02:0252 days 18 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xdc595b3bc8156973c2695a77d1b2cc59df12d9462984d9267a55699d6e74821e129365762022-10-15 15:57:1652 days 18 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x765dd3c39dd58841e273ffa40d620c7d8ce97bc734412c8f20d70d78bf2e7a1c129363702022-10-15 15:50:0852 days 18 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xe8352903c142b202e50245d3e6117c9598a44a56589c2fc39049689d0497104c129362162022-10-15 15:44:5252 days 19 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x054268f4abdbe92386f06e1b3a33fd350818735c90eb9a49ff15b17401ca5b79110176332022-08-30 17:39:5598 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xefeb7129d3b8b5d8019fa8dda64198fe326934f71e69d500cb2fed03cd6e875e110175152022-08-30 17:35:5198 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x99ebde4ea3a2c8c3429307acf203f9e4ebeae6009c6452e6ad0e48619b9b76fc106042552022-08-20 20:42:29108 days 14 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xbbd854d8ce79596563013e78616ea26bf201d3093fe89a69f18f0e1b52cd8811105154482022-08-18 17:49:43110 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xcc954c48923c1e38a5a6e3344f5e6c09beeacb92c67ad410c739d845a12c35d3105153282022-08-18 17:45:39110 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xea56216ec18f9c0787817ff922823aca2f8d3236c64591db4df1c98a65dc915c105146822022-08-18 17:23:23110 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x163d31261feacea6d90701ccfe37b9a95d155069b15fbc3d5a762e24ca8f5d1f105145842022-08-18 17:20:03110 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xeac8e5debd6e3074629c78a30c0836f331710f6d898d1a234dd609b0d20fc5b9105145022022-08-18 17:17:15110 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x4551118a22e2c088c8925cc494a6437844df619eb57e23f0bd79b309a5103fbe105143752022-08-18 17:12:53110 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xd3943f468ff3103029d36cfc64cd075d7a06e382819df5795227d9b742670d2c105143222022-08-18 17:11:03110 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x0339ce4c8e74ae8f3904bc4a25a16c00a56504dd9d6806e2665c5e460eba54cb105142402022-08-18 17:08:15110 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x39bd235c1aaa780c1da071a80fb11809e260c815c6aa60c4d667f09e579eb759105140742022-08-18 17:02:31110 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xdf2b105c000b5f563d0e097720ec5888245ae989cb46d23c58850c68d8c46a26103885742022-08-15 17:08:27113 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x981fb6db67e4f9cfcdcb24f38526f1e0919298d48cebba16fccfd5e2ee4b2b32103884802022-08-15 17:05:15113 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x9cfe54a4decdc33ad45a08cb1244dbf12bfd1a8c9b69b4f6c36af277f34415a0103883992022-08-15 17:02:25113 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x91f01bbb285eb1983729acc1e0a5b6426ac9ecbb915312d1c6370e3eb229c84c103883072022-08-15 16:59:17113 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x6f9f85c870f76b94928f83794c37bcec13c78a30fa3034ad6f97882bf3045485103881992022-08-15 16:55:33113 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0xae18facda57e6ab5b62fbcef0f33a039c2a37f298fe46e39ba3d36fd5182abbe103880822022-08-15 16:51:31113 days 17 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
0x950a8284b737e36d86f14dd74dc63b38e3cd5d15e73a287feb407817df2f9f59103879642022-08-15 16:47:27113 days 18 hrs ago 0x9af4bec1a30bec47756ecef4cf43b91592121bc9  Contract Creation0 BTT
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
VaultFactory

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at bttcscan.com on 2022-02-18
*/

// File: @openzeppelin/contracts/proxy/Clones.sol


// OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol)

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create(0, ptr, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create2(0, ptr, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
            mstore(add(ptr, 0x38), shl(0x60, deployer))
            mstore(add(ptr, 0x4c), salt)
            mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
            predicted := keccak256(add(ptr, 0x37), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address implementation, bytes32 salt)
        internal
        view
        returns (address predicted)
    {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}

// File: @openzeppelin/contracts/proxy/Proxy.sol


// OpenZeppelin Contracts (last updated v4.5.0) (proxy/Proxy.sol)

pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive() external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overriden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {}
}

// File: @openzeppelin/contracts/utils/StorageSlot.sol


// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/interfaces/draft-IERC1822.sol


// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822Proxiable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

// File: @openzeppelin/contracts/proxy/beacon/IBeacon.sol


// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeacon {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

// File: @openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol


// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;





/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967Upgrade {
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            Address.isContract(IBeacon(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
        }
    }
}

// File: contracts/VaultProxy.sol



pragma solidity ^0.8.0;



/**
 * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
 * implementation address that can be changed. This address is stored in storage in the location specified by
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
 * implementation behind the proxy.
 */
contract VaultProxy is Proxy, ERC1967Upgrade {
    /**
     * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
     *
     * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
     * function call, and allows initializating the storage of the proxy like a Solidity constructor.
     */
    function init(address _logic, bytes memory _data) public payable {
        assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        _upgradeToAndCall(_logic, _data, false);
    }

    /**
     * @dev Returns the current implementation address.
     */
    function _implementation() internal view virtual override returns (address impl) {
        return ERC1967Upgrade._getImplementation();
    }
}

// File: contracts/VaultFactory.sol


pragma solidity ^0.8.0;
pragma abicoder v2;



/**
@title Factory contract for Vault
@author The Btfs Authors
@notice This contract deploys Vault contracts
*/
contract VaultFactory {

  /**
  @notice event fired after new Vault deployed
  @param issuer the issuer of the new vault contract
  @param contractAddress the address of the new deployed contract
  @param id the peerID of the btfs node
  */
  event VaultDeployed(address issuer,address contractAddress,string id);

  /* mapping to keep track of which contracts were deployed by this factory */
  mapping (address => bool) public deployedContracts;
  /* mapping between btfs node's peerID and its vault address */
  mapping (string => address) public peerVaultAddress;

  /* address of the code contract from which all vaults are cloned */
  address public master;
  /* address of the TRC20-token, to be used by the to-be-deployed vaults */
  address public TokenAddress;

  constructor(address _TokenAddress) {
    TokenAddress = _TokenAddress;
    VaultProxy _master = new VaultProxy();
    // set the issuer of the master contract to prevent misuse
    //_master.init(address(1), address(0));
    master = address(_master);
  }
  /**
  @notice creates a clone of the master Vault contract
  @param issuer the issuer of cheques for the new vault
  @param _logic the logic vault addr
  @param salt salt to include in create2 to enable the same address to deploy multiple Vaults
  @param id the peerID of the btfs node
  @param _data the calldata to run when deploy vault proxy
  */
  function deployVault(address issuer, address _logic, bytes32 salt, string memory id, bytes memory _data)
  public returns (address) {
    address payable contractAddress = payable(Clones.cloneDeterministic(master, keccak256(abi.encode(msg.sender, salt))));
    VaultProxy(contractAddress).init(_logic, _data);
    deployedContracts[contractAddress] = true;
    peerVaultAddress[id] = contractAddress;
    emit VaultDeployed(issuer,contractAddress,id);
    return contractAddress;
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_TokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"issuer","type":"address"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"string","name":"id","type":"string"}],"name":"VaultDeployed","type":"event"},{"inputs":[],"name":"TokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"issuer","type":"address"},{"internalType":"address","name":"_logic","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"string","name":"id","type":"string"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"deployVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deployedContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"master","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"peerVaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50604051610c56380380610c5683398101604081905261002f916100ab565b600380546001600160a01b0319166001600160a01b0383161790556040516000906100599061009e565b604051809103906000f080158015610075573d6000803e3d6000fd5b50600280546001600160a01b0319166001600160a01b0392909216919091179055506100d99050565b610591806106c583390190565b6000602082840312156100bc578081fd5b81516001600160a01b03811681146100d2578182fd5b9392505050565b6105dd806100e86000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633695ddb21461005c578063c2cba3061461008c578063c70242ad1461009f578063e4e36723146100d2578063ee97f7f314610106575b600080fd5b61006f61006a3660046103e6565b610119565b6040516001600160a01b0390911681526020015b60405180910390f35b60035461006f906001600160a01b031681565b6100c26100ad3660046103cc565b60006020819052908152604090205460ff1681565b6040519015158152602001610083565b61006f6100e0366004610485565b80516020818301810180516001825292820191909301209152546001600160a01b031681565b60025461006f906001600160a01b031681565b60025460408051336020820152908101859052600091829161015d916001600160a01b0316906060016040516020818303038152906040528051906020012061026a565b60405163c0d91eaf60e01b81529091506001600160a01b0382169063c0d91eaf9061018e908990879060040161053d565b600060405180830381600087803b1580156101a857600080fd5b505af11580156101bc573d6000803e3d6000fd5b5050506001600160a01b03821660009081526020819052604090819020805460ff1916600190811790915590518392506101f79087906104ec565b90815260405190819003602001812080546001600160a01b03939093166001600160a01b0319909316929092179091557fb2e029ab52a406bb52fae42d1d1e5dca2793900c250a242af032038b02eb86599061025890899084908890610508565b60405180910390a19695505050505050565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528360601b60148201526e5af43d82803e903d91602b57fd5bf360881b6028820152826037826000f59150506001600160a01b03811661030e5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015260640160405180910390fd5b92915050565b600067ffffffffffffffff8084111561032f5761032f610591565b604051601f8501601f19908116603f0116810190828211818310171561035757610357610591565b8160405280935085815286868601111561037057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146103a157600080fd5b919050565b600082601f8301126103b6578081fd5b6103c583833560208501610314565b9392505050565b6000602082840312156103dd578081fd5b6103c58261038a565b600080600080600060a086880312156103fd578081fd5b6104068661038a565b94506104146020870161038a565b935060408601359250606086013567ffffffffffffffff80821115610437578283fd5b61044389838a016103a6565b93506080880135915080821115610458578283fd5b508601601f81018813610469578182fd5b61047888823560208401610314565b9150509295509295909350565b600060208284031215610496578081fd5b813567ffffffffffffffff8111156104ac578182fd5b6104b8848285016103a6565b949350505050565b600081518084526104d8816020860160208601610561565b601f01601f19169290920160200192915050565b600082516104fe818460208701610561565b9190910192915050565b6001600160a01b03848116825283166020820152606060408201819052600090610534908301846104c0565b95945050505050565b6001600160a01b03831681526040602082018190526000906104b8908301846104c0565b60005b8381101561057c578181015183820152602001610564565b8381111561058b576000848401525b50505050565b634e487b7160e01b600052604160045260246000fdfea26469706673582212208c36175c3335854e47a8af80ec2a9b56ffcbd20d6864139d65f9b167c8c7d64164736f6c63430008030033608060405234801561001057600080fd5b50610571806100206000396000f3fe6080604052600436106100225760003560e01c8063c0d91eaf1461003957610031565b366100315761002f61004c565b005b61002f61004c565b61002f610047366004610396565b61005e565b61005c6100576100d5565b61010d565b565b61008960017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6104af565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc146100c557634e487b7160e01b600052600160045260246000fd5b6100d182826000610136565b5050565b60006101087f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e80801561012c573d6000f35b3d6000fd5b505050565b61013f83610161565b60008251118061014c5750805b156101315761015b83836101a1565b50505050565b61016a816101cd565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606101c6838360405180606001604052806027815260200161051560279139610280565b9392505050565b6001600160a01b0381163b61023f5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60606001600160a01b0384163b6102e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610236565b600080856001600160a01b0316856040516103039190610460565b600060405180830381855af49150503d806000811461033e576040519150601f19603f3d011682016040523d82523d6000602084013e610343565b606091505b509150915061035382828661035d565b9695505050505050565b6060831561036c5750816101c6565b82511561037c5782518084602001fd5b8160405162461bcd60e51b8152600401610236919061047c565b600080604083850312156103a8578182fd5b82356001600160a01b03811681146103be578283fd5b9150602083013567ffffffffffffffff808211156103da578283fd5b818501915085601f8301126103ed578283fd5b8135818111156103ff576103ff6104fe565b604051601f8201601f19908116603f01168101908382118183101715610427576104276104fe565b8160405282815288602084870101111561043f578586fd5b82602086016020830137856020848301015280955050505050509250929050565b600082516104728184602087016104d2565b9190910192915050565b600060208252825180602084015261049b8160408501602087016104d2565b601f01601f19169190910160400192915050565b6000828210156104cd57634e487b7160e01b81526011600452602481fd5b500390565b60005b838110156104ed5781810151838201526020016104d5565b8381111561015b5750506000910152565b634e487b7160e01b600052604160045260246000fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212208fac16ad35529fb20dad43fd4130ae0543f9bf261debe7a60548a4316c10dfff64736f6c6343000803003300000000000000000000000023181f21dea5936e24163ffaba4ea3b316b57f3c

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

00000000000000000000000023181f21dea5936e24163ffaba4ea3b316b57f3c

-----Decoded View---------------
Arg [0] : _TokenAddress (address): 0x23181f21dea5936e24163ffaba4ea3b316b57f3c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000023181f21dea5936e24163ffaba4ea3b316b57f3c


Deployed ByteCode Sourcemap

27666:1914:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29086:491;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3250:32:1;;;3232:51;;3220:2;3205:18;29086:491:0;;;;;;;;28427:27;;;;;-1:-1:-1;;;;;28427:27:0;;;28074:50;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;4487:14:1;;4480:22;4462:41;;4450:2;4435:18;28074:50:0;4417:92:1;28195:51:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28195:51:0;;;28324:21;;;;;-1:-1:-1;;;;;28324:21:0;;;29086:491;29294:6;;29312:28;;;29323:10;29312:28;;;3898:51:1;3965:18;;;3958:34;;;29210:7:0;;;;29268:74;;-1:-1:-1;;;;;29294:6:0;;3871:18:1;;29312:28:0;;;;;;;;;;;;29302:39;;;;;;29268:25;:74::i;:::-;29350:47;;-1:-1:-1;;;29350:47:0;;29226:117;;-1:-1:-1;;;;;;29350:32:0;;;;;:47;;29383:6;;29391:5;;29350:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;29404:34:0;;:17;:34;;;;;;;;;;;;:41;;-1:-1:-1;;29404:41:0;29441:4;29404:41;;;;;;29452:20;;29422:15;;-1:-1:-1;29452:20:0;;29469:2;;29452:20;:::i;:::-;;;;;;;;;;;;;;:38;;-1:-1:-1;;;;;29452:38:0;;;;-1:-1:-1;;;;;;29452:38:0;;;;;;;;;;29502:40;;;;29516:6;;29523:15;;29539:2;;29502:40;:::i;:::-;;;;;;;;29556:15;29086:491;-1:-1:-1;;;;;;29086:491:0:o;1912:559::-;1996:16;2066:4;2060:11;-1:-1:-1;;;2092:3:0;2085:79;2211:14;2205:4;2201:25;2194:4;2189:3;2185:14;2178:49;-1:-1:-1;;;2257:4:0;2252:3;2248:14;2241:90;2379:4;2373;2368:3;2365:1;2357:27;2345:39;-1:-1:-1;;;;;;;2413:22:0;;2405:58;;;;-1:-1:-1;;;2405:58:0;;4716:2:1;2405:58:0;;;4698:21:1;4755:2;4735:18;;;4728:30;4794:25;4774:18;;;4767:53;4837:18;;2405:58:0;;;;;;;;1912:559;;;;:::o;14:631:1:-;;108:18;149:2;141:6;138:14;135:2;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:2;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:2;;;532:1;529;522:12;491:2;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;88:557;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:2;;813:1;810;803:12;747:2;699:124;;;:::o;828:229::-;;924:3;917:4;909:6;905:17;901:27;891:2;;946:5;939;932:20;891:2;972:79;1047:3;1038:6;1025:20;1018:4;1010:6;1006:17;972:79;:::i;:::-;963:88;881:176;-1:-1:-1;;;881:176:1:o;1062:196::-;;1174:2;1162:9;1153:7;1149:23;1145:32;1142:2;;;1195:6;1187;1180:22;1142:2;1223:29;1242:9;1223:29;:::i;1263:928::-;;;;;;1462:3;1450:9;1441:7;1437:23;1433:33;1430:2;;;1484:6;1476;1469:22;1430:2;1512:29;1531:9;1512:29;:::i;:::-;1502:39;;1560:38;1594:2;1583:9;1579:18;1560:38;:::i;:::-;1550:48;;1645:2;1634:9;1630:18;1617:32;1607:42;;1700:2;1689:9;1685:18;1672:32;1723:18;1764:2;1756:6;1753:14;1750:2;;;1785:6;1777;1770:22;1750:2;1813:50;1855:7;1846:6;1835:9;1831:22;1813:50;:::i;:::-;1803:60;;1916:3;1905:9;1901:19;1888:33;1872:49;;1946:2;1936:8;1933:16;1930:2;;;1967:6;1959;1952:22;1930:2;-1:-1:-1;1995:24:1;;2050:4;2042:13;;2038:27;-1:-1:-1;2028:2:1;;2084:6;2076;2069:22;2028:2;2112:73;2177:7;2172:2;2159:16;2154:2;2150;2146:11;2112:73;:::i;:::-;2102:83;;;1420:771;;;;;;;;:::o;2196:342::-;;2318:2;2306:9;2297:7;2293:23;2289:32;2286:2;;;2339:6;2331;2324:22;2286:2;2384:9;2371:23;2417:18;2409:6;2406:30;2403:2;;;2454:6;2446;2439:22;2403:2;2482:50;2524:7;2515:6;2504:9;2500:22;2482:50;:::i;:::-;2472:60;2276:262;-1:-1:-1;;;;2276:262:1:o;2543:257::-;;2622:5;2616:12;2649:6;2644:3;2637:19;2665:63;2721:6;2714:4;2709:3;2705:14;2698:4;2691:5;2687:16;2665:63;:::i;:::-;2782:2;2761:15;-1:-1:-1;;2757:29:1;2748:39;;;;2789:4;2744:50;;2592:208;-1:-1:-1;;2592:208:1:o;2805:276::-;;2974:6;2968:13;2990:53;3036:6;3031:3;3024:4;3016:6;3012:17;2990:53;:::i;:::-;3059:16;;;;;2944:137;-1:-1:-1;;2944:137:1:o;3294:425::-;-1:-1:-1;;;;;3545:15:1;;;3527:34;;3597:15;;3592:2;3577:18;;3570:43;3649:2;3644;3629:18;;3622:30;;;3294:425;;3669:44;;3694:18;;3686:6;3669:44;:::i;:::-;3661:52;3479:240;-1:-1:-1;;;;;3479:240:1:o;4003:314::-;-1:-1:-1;;;;;4178:32:1;;4160:51;;4247:2;4242;4227:18;;4220:30;;;4003:314;;4267:44;;4292:18;;4284:6;4267:44;:::i;4866:258::-;4938:1;4948:113;4962:6;4959:1;4956:13;4948:113;;;5038:11;;;5032:18;5019:11;;;5012:39;4984:2;4977:10;4948:113;;;5079:6;5076:1;5073:13;5070:2;;;5114:1;5105:6;5100:3;5096:16;5089:27;5070:2;;4919:205;;;:::o;5129:127::-;5190:10;5185:3;5181:20;5178:1;5171:31;5221:4;5218:1;5211:15;5245:4;5242:1;5235:15

Swarm Source

ipfs://8fac16ad35529fb20dad43fd4130ae0543f9bf261debe7a60548a4316c10dfff
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.