Contract 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac 17

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8861833958ad9cd59b2dc1ebc226470aa5deefcd71cac4f6a36610a4923291a3Save Withdraw Na...635621422023-06-04 8:38:5812 secs ago0xf6d24c7bba0453c8d09c35558c68cead5106026a IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011697590025
0x97a969cc8a86fa8e36dd59006ac447723192be3959eb38f52410e1ab3c45a997Save Withdraw Na...635621422023-06-04 8:38:5812 secs ago0x9e6cabd5a2d1ab87604238dc335dbd45b9888b48 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011712286332
0x65aea4e3b56ab133e924f48e8a52a1ca1013bdeb30311120c98f26ff36021ba1Save Withdraw Na...635621412023-06-04 8:38:5713 secs ago0x15c190b88c4a37b9bfb40d194409aa0823d477da IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011711795978
0xc1b5c120f6c539df46874fdb02ab02a9e2e71cb64f3869ede39972465820196dSave Withdraw Na...635621402023-06-04 8:38:5416 secs ago0xe1acbfb2924252a56e606587ec997db064988e3c IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011710324916
0x4e3c66317e4576076a23aba39bcc8ecb812e1d9b9902eee2fe76f434389ec5edSave Withdraw Na...635621392023-06-04 8:38:5317 secs ago0x470432b2383355eca327ef20894b314395a63998 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011712286332
0x0d57c3fb1bbb53b6c87fad439eeff14f247d497657dd67df86daaed30e789d71Save Withdraw Na...635621392023-06-04 8:38:5317 secs ago0x2f36ae289e1e8a20f81a2a3f2049203f85a2cac8 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011711060447
0xfdc8d8471eb617f5d3f3480e57b35c94a8a254d413e649e592b51ade2c7817afSave Withdraw Na...635621392023-06-04 8:38:5317 secs ago0x244623bce81bd09ee10236ed6c30b9b998b13b1e IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011710324916
0xef52e632527d8c5da33d8ac870015108d863cb5ea5e8ba0ce2fbcf2a24b23dafSave Withdraw Na...635621382023-06-04 8:38:5119 secs ago0x66d8b21b187906667a8b6a2da4920bf0198ce4f2 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011755064053
0xa3b3ab818a49a898145177e61f8cbc65c366fda8a7b3008584c70d3147c5a63eSave Withdraw Na...635621382023-06-04 8:38:5119 secs ago0x4e06f96eb27dc95a44ef88abce6d8fa6d084f5b4 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011710570093
0x759ed286d5511cffd4fbdb712bbd64ce547a5a80f37cd1e8f9162e723fbd6183Save Withdraw Na...635621372023-06-04 8:38:4921 secs ago0xc8af9dfd7c3a09a1b7719d79b73d0985788d9f54 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011713021863
0x7de03c6c10d45f5048217ced6ab33f1bdff0e001e477f2a1a8d2cc5e1e5ab6d7Save Withdraw Na...635621372023-06-04 8:38:4921 secs ago0xd70874dcb358be1b3bc954bb9ea01550623e29a5 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011724044659
0xcfc328da39f0a84e8534a4bda4bd0174e44c16dfdde19da7e318d1f7d5d5f46bSave Withdraw Na...635621362023-06-04 8:38:4723 secs ago0x5fb660c946345ab5c2a687155163b0de9b68c844 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011709834562
0xdf722b89b0eab33a851748cd7f8d0df2681d40fc8b4d11fdb4d41ea5529c5bdcSave Withdraw Na...635621362023-06-04 8:38:4723 secs ago0xc66d14c5b6a4e3c7bf1ecca1176b67417ff9f8b2 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011711060447
0x275e5d05a145df2c68f0ef2ddd25b34e4997d084a45fa89b791d2a124613a191Save Withdraw Na...635621362023-06-04 8:38:4723 secs ago0x8002995192b2554efff3d6108962f3275b22830a IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011711060447
0xa54111964537e0acbc852e083cacfd3797bd947dac89807e7774c728f056b50eSave Withdraw Na...635621352023-06-04 8:38:4624 secs ago0x3b270a8d18d013f3af437f34cb76a16b974a19fe IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011709834562
0xd7bc06eeecda7334f8110dd3ac12841b834e4a344c5c04edeb3b0871605d38a9Save Withdraw Na...635621342023-06-04 8:38:4327 secs ago0x8b43a15d078ecb0d53a34708e54523146e4011a5 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011721590839
0x09a5403b785945def9c69c8133c25a8bc0a1f535f0630b06b2167ddf3ebe1679Save Withdraw Na...635621332023-06-04 8:38:4228 secs ago0xda9226f0d14cbcc1b0dde6be5309bf7d14dc67cd IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011698324709
0xe88524a0982b697b4bbcf86859187523ee9071324b871a86ade96449bcdadf44Save Withdraw Na...635621332023-06-04 8:38:4228 secs ago0x0d564bc6d17b27a77394eaa9e22f4502acc3a508 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011722572367
0xcdc48d7ce63d888cefc02c0fe3e154b84df914eb2ceb91a38e60ed32b9da2dfcSave Withdraw Na...635621322023-06-04 8:38:4129 secs ago0x7db74d210e143b36fa1a9943e78df8a28dff0d48 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011711060447
0x9367248189e3becc4b78d0b6b5f6953113f5f7d643a8ff2cf328d5014712410cDeposit635620792023-06-04 8:36:192 mins ago0xd80908c9c492cec22eb196c9b378864c01423fa4 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.005943842267
0x8d43431ffce980eb56e1da260032422ca496c366e4dd8021c2f76ef95084192eSave Withdraw Na...635620592023-06-04 8:35:353 mins ago0x56ad276997efcae7f300bacd60576be4c509e0e7 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.01134836351
0xe292ae508d49ba2987a21570b9645ffcf7898d29033881c04e412573c497390bSave Withdraw Na...635620552023-06-04 8:35:293 mins ago0xd80908c9c492cec22eb196c9b378864c01423fa4 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.020978322518
0x97f37167d19b019e1ebadad09e598fbc14d3544b3ec4c94b88a41d67375d70b5Deposit635619492023-06-04 8:31:277 mins ago0xdb937cae201132e315a6cbe1bc8cbed33b2ed251 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.00529442284
0xe977440a9603c702c3b32927d6d722440a2dc39160cca1ffac67ddc4c5898a87Save Withdraw Na...635619152023-06-04 8:30:049 mins ago0xdb937cae201132e315a6cbe1bc8cbed33b2ed251 IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.011207160833
0x48cb62825d88cbfb9ba70abf343a88f23a7233c1a5972c9264c868f3d700f33dDeposit635618622023-06-04 8:27:3511 mins ago0x12d9849f0931d34c87de329dc1919866821fdb4a IN  0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac0 FTM0.005312822474
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xcd8dd7972b213d6fdb5333e0916dcba931bdd4d855a0eaabcd0525cd692d5309625822372023-05-18 12:14:1916 days 20 hrs ago 0xfd3f2bcf64dc228c2e68aeaf48a5c85231fb7665 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.784567166390679186 FTM
0xbc8aec37a1849b6d8e522602b31b509e8f9d1746e7653d51ec309063dd2bb853620145602023-05-11 10:31:4923 days 22 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.182549803663068781 FTM
0x52368da8ac1306d607e899c144ebfda9c65ab645cba1a3edefb726f589dccb31620140842023-05-11 10:24:4523 days 22 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.202894936582552723 FTM
0xd79893f1b39a3510ce7266ec3b624cd5247e3e02caad29deae313ced6ab2f222620134292023-05-11 10:15:0423 days 22 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.272707941928986476 FTM
0x809f34723c74157e7efb185f815e5912c03ce7af2ad2fa51729437c61e0806be620125842023-05-11 10:02:1223 days 22 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.324992082196522296 FTM
0x78783647bd416eb086d09e2ea227e3013aeac9be7e3a03a4d3fd4e10cac837b1620103802023-05-11 9:28:4223 days 23 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.22588514119388242 FTM
0x8d15a3fdd43444e9d294f763cd48a475bedae653761ddd673152608f44b62898620084282023-05-11 8:57:0923 days 23 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.234430160094971152 FTM
0x1bdef08595d347103affef14d3145304d971dd9033288bf2362d9d0a52680a98620064582023-05-11 8:26:3024 days 12 mins ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac7.066598509474889711 FTM
0x59b85e3d9141eb1244f2d95703367bd482b2c52238c70c6ea53200ba1128c49a620015252023-05-11 7:15:3324 days 1 hr ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.989592525651756365 FTM
0xcfdc0cddbc73901fd8166bd7f048d7fe270d9ad810b2663acb208d081edeab61620010092023-05-11 7:08:2824 days 1 hr ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.001610641900362245 FTM
0xea441ea5efa6398c8a67cdd940b4ac600bdd6ef90be5a3af429b5397d9052e34620003002023-05-11 6:58:0824 days 1 hr ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac7.401353327158936877 FTM
0x82e2ea3da9ea1cc437f9550a9d4773a151f318d0228cb75983e651c80dfa9746619931772023-05-11 5:10:4424 days 3 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.661267905623109543 FTM
0x10db6712066542109f90da7d43cd54207abc95ee52f22851320649ef0c69bd2e619925872023-05-11 5:01:2724 days 3 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.96317013291158431 FTM
0x99f23ff9e97bb3509730e1f09fcb6158b8737912ae570c2a5a4a9b1e306dd888619913782023-05-11 4:42:4724 days 3 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.145713311757195851 FTM
0x98fbb4a9600b0223195c718e20a030acf1caf065e35cede1ed3d33fb0143e054619156862023-05-10 9:32:0824 days 23 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.133835075571308368 FTM
0x2620832f73a01d4a1abd715e585c43533bf94790f6f106d32e0eca81fc1c0936619146092023-05-10 9:17:0324 days 23 hrs ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.058136227466838028 FTM
0xd4e0269cc250edc900d7fb33d3afee7be7c45c6d564d809ca86aec335debbbb7619079492023-05-10 7:26:5725 days 1 hr ago 0x13d8c3941cbfc3a57c1d8ed1fe3fe134da34be7e 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac6.012811555636326582 FTM
0x61a76da6d98eee6932ce8b6e797f241620888839b4a33af91038f27f67721a1d617463642023-05-08 7:13:5827 days 1 hr ago 0xfd3f2bcf64dc228c2e68aeaf48a5c85231fb7665 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.935057398560894842 FTM
0x18a6980da49ab636417b63a50f83ae3a89cae6d70a869a2c8d6e7ecad99da031615138872023-05-05 7:02:5630 days 1 hr ago 0xfd3f2bcf64dc228c2e68aeaf48a5c85231fb7665 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.533029750533674075 FTM
0x6c9f2583084f7a7f39e9c6b40263062147522ec4c2ce5358876ff7a77743798b615132312023-05-05 6:46:0030 days 1 hr ago 0xfd3f2bcf64dc228c2e68aeaf48a5c85231fb7665 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.518816683643931775 FTM
0x5a726f986e6ffd529d669798c9159f34639501837d9848230ce021a42bad53ec609747452023-04-28 10:06:1336 days 22 hrs ago 0xfd3f2bcf64dc228c2e68aeaf48a5c85231fb7665 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.66433016910220971 FTM
0x12e678d2c3b9a0c2a1bf29377214d895bef398cfdc88566d84491eefb988ed7b608943682023-04-27 7:31:2538 days 1 hr ago 0xfd3f2bcf64dc228c2e68aeaf48a5c85231fb7665 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.674432747503592013 FTM
0x75367a5d149a5053fc25c56ac718e710a3da8aa1b63ff15191895b55b4f81a97608894762023-04-27 5:58:2338 days 2 hrs ago 0xfd3f2bcf64dc228c2e68aeaf48a5c85231fb7665 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.606530196121729909 FTM
0xaf5e03d4c50863e8efcdb1924e82c09580fcc1dd81e3e6fe95f24117d10b7436608878072023-04-27 5:30:1838 days 3 hrs ago 0xfd3f2bcf64dc228c2e68aeaf48a5c85231fb7665 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.606372781726723108 FTM
0x4cd6d427e510d7fce95f79043f3b97da0c54e8cc164ba949c8d008580fb58d48608865442023-04-27 5:07:0438 days 3 hrs ago 0xfd3f2bcf64dc228c2e68aeaf48a5c85231fb7665 0x7dbfdc0a2d18f690d35f38e66dfab795c0175dac5.612834825266442285 FTM
[ Download CSV Export 
Loading

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

Contract Name:
TransparentUpgradeableProxy

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Multiple files format)

File 11 of 11: TransparentUpgradeableProxy.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)

pragma solidity 0.8.0;

import "./ERC1967Proxy.sol";

/**
 * @dev This contract implements a proxy that is upgradeable by an admin.
 *
 * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
 * clashing], which can potentially be used in an attack, this contract uses the
 * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two
 * things that go hand in hand:
 *
 * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if
 * that call matches one of the admin functions exposed by the proxy itself.
 * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the
 * implementation. If the admin tries to call a function on the implementation it will fail with an error that says
 * "admin cannot fallback to proxy target".
 *
 * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing
 * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due
 * to sudden errors when trying to call a function from the proxy implementation.
 *
 * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,
 * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.
 */
contract TransparentUpgradeableProxy is ERC1967Proxy {
    /**
     * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
     * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.
     */
    constructor(
        address _logic,
        address admin_,
        bytes memory _data
    ) payable ERC1967Proxy(_logic, _data) {
        assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
        _changeAdmin(admin_);
    }

    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
     */
    modifier ifAdmin() {
        if (msg.sender == _getAdmin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @dev Returns the current admin.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function admin() external ifAdmin returns (address admin_) {
        admin_ = _getAdmin();
    }

    /**
     * @dev Returns the current implementation.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
     */
    function implementation() external ifAdmin returns (address implementation_) {
        implementation_ = _implementation();
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
     */
    function changeAdmin(address newAdmin) external virtual ifAdmin {
        _changeAdmin(newAdmin);
    }

    /**
     * @dev Upgrade the implementation of the proxy.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
     */
    function upgradeTo(address newImplementation) external ifAdmin {
        _upgradeToAndCall(newImplementation, bytes(""), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
     * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
     * proxied contract.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.
     */
    function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {
        _upgradeToAndCall(newImplementation, data, true);
    }

    /**
     * @dev Returns the current admin.
     */
    function _admin() internal view virtual returns (address) {
        return _getAdmin();
    }

    /**
     * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
     */
    function _beforeFallback() internal virtual override {
        require(msg.sender != _getAdmin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
        super._beforeFallback();
    }
}

File 1 of 11: Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity 0.8.0;

/**
 * @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 2 of 11: Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity 0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 3 of 11: draft-IERC1822.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.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 4 of 11: ERC1967Proxy.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)

pragma solidity 0.8.0;

import "./Proxy.sol";
import "./ERC1967Upgrade.sol";

/**
 * @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 ERC1967Proxy 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.
     */
    constructor(address _logic, bytes memory _data) 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 5 of 11: ERC1967Upgrade.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity 0.8.0;

import "./IBeacon.sol";
import "./draft-IERC1822.sol";
import "./Address.sol";
import "./StorageSlot.sol";

/**
 * @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._
 *
 */
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) || newImplementation == address(0),
            "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 virtual 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 6 of 11: IBeacon.sol
// SPDX-License-Identifier: MIT
// 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 7 of 11: Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity 0.8.0;

import "./Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor (address initialOwner) {
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 8 of 11: Proxy.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.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 9 of 11: ProxyAdmin.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/transparent/ProxyAdmin.sol)

pragma solidity 0.8.0;

import "./TransparentUpgradeableProxy.sol";
import "./Ownable.sol";

/**
 * @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an
 * explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.
 */
contract ProxyAdmin is Ownable {

    constructor (address initialOwner) Ownable(initialOwner) {}

    /**
     * @dev Returns the current implementation of `proxy`.
     *
     * Requirements:
     *
     * - This contract must be the admin of `proxy`.
     */
    function getProxyImplementation(TransparentUpgradeableProxy proxy) public view virtual returns (address) {
        // We need to manually run the static call since the getter cannot be flagged as view
        // bytes4(keccak256("implementation()")) == 0x5c60da1b
        (bool success, bytes memory returndata) = address(proxy).staticcall(hex"5c60da1b");
        require(success);
        return abi.decode(returndata, (address));
    }

    /**
     * @dev Returns the current admin of `proxy`.
     *
     * Requirements:
     *
     * - This contract must be the admin of `proxy`.
     */
    function getProxyAdmin(TransparentUpgradeableProxy proxy) public view virtual returns (address) {
        // We need to manually run the static call since the getter cannot be flagged as view
        // bytes4(keccak256("admin()")) == 0xf851a440
        (bool success, bytes memory returndata) = address(proxy).staticcall(hex"f851a440");
        require(success);
        return abi.decode(returndata, (address));
    }

    /**
     * @dev Changes the admin of `proxy` to `newAdmin`.
     *
     * Requirements:
     *
     * - This contract must be the current admin of `proxy`.
     */
    function changeProxyAdmin(TransparentUpgradeableProxy proxy, address newAdmin) public virtual onlyOwner {
        proxy.changeAdmin(newAdmin);
    }

    /**
     * @dev Upgrades `proxy` to `implementation`. See {TransparentUpgradeableProxy-upgradeTo}.
     *
     * Requirements:
     *
     * - This contract must be the admin of `proxy`.
     */
    function upgrade(TransparentUpgradeableProxy proxy, address implementation) public virtual onlyOwner {
        proxy.upgradeTo(implementation);
    }

    /**
     * @dev Upgrades `proxy` to `implementation` and calls a function on the new implementation. See
     * {TransparentUpgradeableProxy-upgradeToAndCall}.
     *
     * Requirements:
     *
     * - This contract must be the admin of `proxy`.
     */
    function upgradeAndCall(
        TransparentUpgradeableProxy proxy,
        address implementation,
        bytes memory data
    ) public payable virtual onlyOwner {
        proxy.upgradeToAndCall{value: msg.value}(implementation, data);
    }
}

File 10 of 11: StorageSlot.sol
// SPDX-License-Identifier: MIT
// 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
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526040516200104d3803806200104d833981016040819052620000269162000459565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd62000675565b60008051602062001006833981519152146200008157634e487b7160e01b600052600160045260246000fd5b6200008f82826000620000ff565b50620000bf905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610462000675565b60008051602062000fe683398151915214620000eb57634e487b7160e01b600052600160045260246000fd5b620000f6826200013c565b505050620006de565b6200010a836200018e565b600082511180620001185750805b156200013757620001358383620001d060201b620002661760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f62000167620001ff565b82604051620001789291906200054d565b60405180910390a16200018b8162000238565b50565b6200019981620002b4565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001f88383604051806060016040528060278152602001620010266027913962000325565b9392505050565b60006200022960008051602062000fe683398151915260001b620003cd60201b6200020e1760201c565b546001600160a01b0316905090565b6001600160a01b0381166200026a5760405162461bcd60e51b815260040162000261906200059c565b60405180910390fd5b806200029360008051602062000fe683398151915260001b620003cd60201b6200020e1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002ca81620003d060201b620002921760201c565b80620002dd57506001600160a01b038116155b620002fc5760405162461bcd60e51b81526004016200026190620005e2565b80620002936000805160206200100683398151915260001b620003cd60201b6200020e1760201c565b60606200033284620003d0565b620003515760405162461bcd60e51b815260040162000261906200062f565b600080856001600160a01b0316856040516200036e91906200052f565b600060405180830381855af49150503d8060008114620003ab576040519150601f19603f3d011682016040523d82523d6000602084013e620003b0565b606091505b509092509050620003c382828662000403565b9695505050505050565b90565b600080826001600160a01b0316803b806020016040519081016040528181526000908060200190933c511190505b919050565b6060831562000414575081620001f8565b825115620004255782518084602001fd5b8160405162461bcd60e51b815260040162000261919062000567565b80516001600160a01b0381168114620003fe57600080fd5b6000806000606084860312156200046e578283fd5b620004798462000441565b9250620004896020850162000441565b60408501519092506001600160401b0380821115620004a6578283fd5b818601915086601f830112620004ba578283fd5b815181811115620004cf57620004cf620006c8565b604051601f8201601f191681016020018381118282101715620004f657620004f6620006c8565b6040528181528382016020018910156200050e578485fd5b6200052182602083016020870162000699565b809450505050509250925092565b600082516200054381846020870162000699565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b60006020825282518060208401526200058881604085016020870162000699565b601f01601f19169190910160400192915050565b60208082526026908201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252602d908201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60408201526c1bdd08184818dbdb9d1c9858dd609a1b606082015260800190565b60208082526026908201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6040820152651b9d1c9858dd60d21b606082015260800190565b6000828210156200069457634e487b7160e01b81526011600452602481fd5b500390565b60005b83811015620006b65781810151838201526020016200069c565b83811115620001355750506000910152565b634e487b7160e01b600052604160045260246000fd5b6108f880620006ee6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100855780635c60da1b146100985780638f283970146100c3578063f851a440146100e35761005d565b3661005d5761005b6100f8565b005b61005b6100f8565b34801561007157600080fd5b5061005b610080366004610619565b610112565b61005b610093366004610633565b61015e565b3480156100a457600080fd5b506100ad6101d4565b6040516100ba91906106cd565b60405180910390f35b3480156100cf57600080fd5b5061005b6100de366004610619565b610211565b3480156100ef57600080fd5b506100ad61023b565b6101006102c5565b61011061010b61030f565b61031e565b565b61011a610342565b6001600160a01b0316336001600160a01b031614156101535761014e8160405180602001604052806000815250600061037c565b61015b565b61015b6100f8565b50565b610166610342565b6001600160a01b0316336001600160a01b031614156101c7576101c28383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506001925061037c915050565b6101cf565b6101cf6100f8565b505050565b60006101de610342565b6001600160a01b0316336001600160a01b03161415610206576101ff61030f565b905061020e565b61020e6100f8565b90565b610219610342565b6001600160a01b0316336001600160a01b031614156101535761014e816103a7565b6000610245610342565b6001600160a01b0316336001600160a01b03161415610206576101ff610342565b606061028b838360405180606001604052806027815260200161089c602791396103f0565b9392505050565b600080826001600160a01b0316803b806020016040519081016040528181526000908060200190933c511190505b919050565b6102cd610342565b6001600160a01b0316336001600160a01b031614156103075760405162461bcd60e51b81526004016102fe90610807565b60405180910390fd5b610110610110565b600061031961048c565b905090565b3660008037600080366000845af43d6000803e80801561033d573d6000f35b3d6000fd5b600061036d7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610361020e565b546001600160a01b0316905090565b610385836104b7565b6000825111806103925750805b156101cf576103a18383610266565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103d0610342565b826040516103df9291906106e1565b60405180910390a161015b816104f7565b60606103fb84610292565b6104175760405162461bcd60e51b81526004016102fe906107c1565b600080856001600160a01b03168560405161043291906106b1565b600060405180830381855af49150503d806000811461046d576040519150601f19603f3d011682016040523d82523d6000602084013e610472565b606091505b5091509150610482828286610568565b9695505050505050565b600061036d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc61020e565b6104c0816105a1565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b03811661051d5760405162461bcd60e51b81526004016102fe9061072e565b806105477fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610361020e565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060831561057757508161028b565b8251156105875782518084602001fd5b8160405162461bcd60e51b81526004016102fe91906106fb565b6105aa81610292565b806105bc57506001600160a01b038116155b6105d85760405162461bcd60e51b81526004016102fe90610774565b806105477f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc61020e565b80356001600160a01b03811681146102c057600080fd5b60006020828403121561062a578081fd5b61028b82610602565b600080600060408486031215610647578182fd5b61065084610602565b9250602084013567ffffffffffffffff8082111561066c578384fd5b818601915086601f83011261067f578384fd5b81358181111561068d578485fd5b87602082850101111561069e578485fd5b6020830194508093505050509250925092565b600082516106c381846020870161086f565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b600060208252825180602084015261071a81604085016020870161086f565b601f01601f19169190910160400192915050565b60208082526026908201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252602d908201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60408201526c1bdd08184818dbdb9d1c9858dd609a1b606082015260800190565b60208082526026908201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6040820152651b9d1c9858dd60d21b606082015260800190565b60208082526042908201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60408201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606082015261195d60f21b608082015260a00190565b60005b8381101561088a578181015183820152602001610872565b838111156103a1575050600091015256fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220afceb59f79a67531e006bbc66581cbed8c316ff866fb437414a4cf57f48bb38e64736f6c63430008000033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fa552e47f793c419c5d81c237220e3941adf179200000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

1624:3556:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2878:11:6;:9;:11::i;:::-;1624:3556:9;;2655:11:6;:9;:11::i;4022:134:9:-;;;;;;;;;;-1:-1:-1;4022:134:9;;;;;:::i;:::-;;:::i;4532:164::-;;;;;;:::i;:::-;;:::i;3425:129::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3759:103;;;;;;;;;;-1:-1:-1;3759:103:9;;;;;:::i;:::-;;:::i;2869:96::-;;;;;;;;;;;;;:::i;2302:110:6:-;2350:17;:15;:17::i;:::-;2377:28;2387:17;:15;:17::i;:::-;2377:9;:28::i;:::-;2302:110::o;4022:134:9:-;2340:11;:9;:11::i;:::-;-1:-1:-1;;;;;2326:25:9;:10;-1:-1:-1;;;;;2326:25:9;;2322:99;;;4095:54:::1;4113:17;4132:9;;;;;;;;;;;::::0;4143:5:::1;4095:17;:54::i;:::-;2322:99:::0;;;2399:11;:9;:11::i;:::-;4022:134;:::o;4532:164::-;2340:11;:9;:11::i;:::-;-1:-1:-1;;;;;2326:25:9;:10;-1:-1:-1;;;;;2326:25:9;;2322:99;;;4641:48:::1;4659:17;4678:4;;4641:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;4684:4:9::1;::::0;-1:-1:-1;4641:17:9::1;::::0;-1:-1:-1;;4641:48:9:i:1;:::-;2322:99:::0;;;2399:11;:9;:11::i;:::-;4532:164;;;:::o;3425:129::-;3477:23;2340:11;:9;:11::i;:::-;-1:-1:-1;;;;;2326:25:9;:10;-1:-1:-1;;;;;2326:25:9;;2322:99;;;3530:17:::1;:15;:17::i;:::-;3512:35;;2322:99:::0;;;2399:11;:9;:11::i;:::-;3425:129;:::o;3759:103::-;2340:11;:9;:11::i;:::-;-1:-1:-1;;;;;2326:25:9;:10;-1:-1:-1;;;;;2326:25:9;;2322:99;;;3833:22:::1;3846:8;3833:12;:22::i;2869:96::-:0;2912:14;2340:11;:9;:11::i;:::-;-1:-1:-1;;;;;2326:25:9;:10;-1:-1:-1;;;;;2326:25:9;;2322:99;;;2947:11:::1;:9;:11::i;6569:198:0:-:0;6652:12;6683:77;6704:6;6712:4;6683:77;;;;;;;;;;;;;;;;;:20;:77::i;:::-;6676:84;6569:198;-1:-1:-1;;;6569:198:0:o;1174:320::-;1234:4;1486:1;1464:7;-1:-1:-1;;;;;1464:12:0;;;;;;;;;;;;;;;;;;;;;;;;:19;:23;1457:30;;1174:320;;;;:::o;4971:207:9:-;5056:11;:9;:11::i;:::-;-1:-1:-1;;;;;5042:25:9;:10;-1:-1:-1;;;;;5042:25:9;;;5034:104;;;;-1:-1:-1;;;5034:104:9;;;;;;;:::i;:::-;;;;;;;;;5148:23;:21;:23::i;1238:140:2:-;1305:12;1336:35;:33;:35::i;:::-;1329:42;;1238:140;:::o;952:871:6:-;1278:14;1275:1;1272;1259:34;1484:1;1481;1465:14;1462:1;1446:14;1439:5;1426:60;1556:16;1553:1;1550;1535:38;1594:6;1661:66;;;;1776:16;1773:1;1766:27;1661:66;1696:16;1693:1;1686:27;4089:130:3;4141:7;4167:39;3823:66;4167:26;:39::i;:::-;:45;-1:-1:-1;;;;;4167:45:3;;-1:-1:-1;4089:130:3;:::o;2164:295::-;2302:29;2313:17;2302:10;:29::i;:::-;2359:1;2345:4;:11;:15;:28;;;;2364:9;2345:28;2341:112;;;2389:53;2418:17;2437:4;2389:28;:53::i;:::-;;2164:295;;;:::o;4613:135::-;4677:35;4690:11;:9;:11::i;:::-;4703:8;4677:35;;;;;;;:::i;:::-;;;;;;;;4722:19;4732:8;4722:9;:19::i;6953:387:0:-;7094:12;7126:18;7137:6;7126:10;:18::i;:::-;7118:69;;;;-1:-1:-1;;;7118:69:0;;;;;;;:::i;:::-;7199:12;7213:23;7240:6;-1:-1:-1;;;;;7240:19:0;7260:4;7240:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7198:67;;;;7282:51;7299:7;7308:10;7320:12;7282:16;:51::i;:::-;7275:58;6953:387;-1:-1:-1;;;;;;6953:387:0:o;1213:140:3:-;1266:7;1292:48;942:66;1292:26;:48::i;1878:152::-;1944:37;1963:17;1944:18;:37::i;:::-;1996:27;;-1:-1:-1;;;;;1996:27:3;;;;;;;;1878:152;:::o;4301:201::-;-1:-1:-1;;;;;4364:22:3;;4356:73;;;;-1:-1:-1;;;4356:73:3;;;;;;;:::i;:::-;4487:8;4439:39;3823:66;4439:26;:39::i;:::-;:56;;-1:-1:-1;;;;;;4439:56:3;-1:-1:-1;;;;;4439:56:3;;;;;;;;;;-1:-1:-1;4301:201:3:o;7560:692:0:-;7706:12;7734:7;7730:516;;;-1:-1:-1;7764:10:0;7757:17;;7730:516;7875:17;;:21;7871:365;;8069:10;8063:17;8129:15;8116:10;8112:2;8108:19;8101:44;8018:145;8208:12;8201:20;;-1:-1:-1;;;8201:20:0;;;;;;;;:::i;1444:328:3:-;1538:37;1557:17;1538:18;:37::i;:::-;:72;;;-1:-1:-1;;;;;;1579:31:3;;;1538:72;1517:164;;;;-1:-1:-1;;;1517:164:3;;;;;;;:::i;:::-;1748:17;1691:48;942:66;1691:26;:48::i;14:175:11:-;84:20;;-1:-1:-1;;;;;133:31:11;;123:42;;113:2;;179:1;176;169:12;194:198;;306:2;294:9;285:7;281:23;277:32;274:2;;;327:6;319;312:22;274:2;355:31;376:9;355:31;:::i;397:717::-;;;;545:2;533:9;524:7;520:23;516:32;513:2;;;566:6;558;551:22;513:2;594:31;615:9;594:31;:::i;:::-;584:41;;676:2;665:9;661:18;648:32;699:18;740:2;732:6;729:14;726:2;;;761:6;753;746:22;726:2;804:6;793:9;789:22;779:32;;849:7;842:4;838:2;834:13;830:27;820:2;;876:6;868;861:22;820:2;921;908:16;947:2;939:6;936:14;933:2;;;968:6;960;953:22;933:2;1018:7;1013:2;1004:6;1000:2;996:15;992:24;989:37;986:2;;;1044:6;1036;1029:22;986:2;1080;1076;1072:11;1062:21;;1102:6;1092:16;;;;;503:611;;;;;:::o;1119:274::-;;1286:6;1280:13;1302:53;1348:6;1343:3;1336:4;1328:6;1324:17;1302:53;:::i;:::-;1371:16;;;;;1256:137;-1:-1:-1;;1256:137:11:o;1398:203::-;-1:-1:-1;;;;;1562:32:11;;;;1544:51;;1532:2;1517:18;;1499:102::o;1606:304::-;-1:-1:-1;;;;;1836:15:11;;;1818:34;;1888:15;;1883:2;1868:18;;1861:43;1768:2;1753:18;;1735:175::o;1915:383::-;;2064:2;2053:9;2046:21;2096:6;2090:13;2139:6;2134:2;2123:9;2119:18;2112:34;2155:66;2214:6;2209:2;2198:9;2194:18;2189:2;2181:6;2177:15;2155:66;:::i;:::-;2282:2;2261:15;-1:-1:-1;;2257:29:11;2242:45;;;;2289:2;2238:54;;2036:262;-1:-1:-1;;2036:262:11:o;2303:402::-;2505:2;2487:21;;;2544:2;2524:18;;;2517:30;2583:34;2578:2;2563:18;;2556:62;-1:-1:-1;;;2649:2:11;2634:18;;2627:36;2695:3;2680:19;;2477:228::o;2710:409::-;2912:2;2894:21;;;2951:2;2931:18;;;2924:30;2990:34;2985:2;2970:18;;2963:62;-1:-1:-1;;;3056:2:11;3041:18;;3034:43;3109:3;3094:19;;2884:235::o;3124:402::-;3326:2;3308:21;;;3365:2;3345:18;;;3338:30;3404:34;3399:2;3384:18;;3377:62;-1:-1:-1;;;3470:2:11;3455:18;;3448:36;3516:3;3501:19;;3298:228::o;3531:470::-;3733:2;3715:21;;;3772:2;3752:18;;;3745:30;3811:34;3806:2;3791:18;;3784:62;3882:34;3877:2;3862:18;;3855:62;-1:-1:-1;;;3948:3:11;3933:19;;3926:33;3991:3;3976:19;;3705:296::o;4006:258::-;4078:1;4088:113;4102:6;4099:1;4096:13;4088:113;;;4178:11;;;4172:18;4159:11;;;4152:39;4124:2;4117:10;4088:113;;;4219:6;4216:1;4213:13;4210:2;;;-1:-1:-1;;4254:1:11;4236:16;;4229:27;4059:205::o

Swarm Source

ipfs://afceb59f79a67531e006bbc66581cbed8c316ff866fb437414a4cf57f48bb38e
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.