Token USD Coin
This token is bridged from its native chain using Nomad.
Overview ERC20
Price
$1.00 @ 3.817081 GLMR (+0.01%)
Fully Diluted Market Cap
Total Supply:
18,327,252.693424 USDC
Holders:
9,858 addresses
Contract:
Decimals:
6
Official Site:
Balance
0 USDCValue
$0.00
[ Download CSV Export ]
[ Download CSV Export ]
Market
Volume (24H) | : | $4,424,616,380.22 |
Market Capitalization | : | $28,504,547,067.59 |
Circulating Supply | : | 28,502,403,168.00 USDC |
Market Data Source: Coinmarketcap |
Update? Click here to update the token ICO / general information
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|---|---|---|---|---|
1 | ![]() | USDC-USDT | $1.003 0.0000379 Btc | $385,596,637.00 384,380,968.095 USDC | 48.1716% |
2 | ![]() | 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.9985 0.0000377 Btc | $289,842,929.00 155,837.803 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | 0.0195% |
3 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $170,481,101.00 6,350.401 BTC | 0.0008% |
4 | ![]() | BTC-USDC | $1.002 0.0000378 Btc | $169,655,414.00 6,423.494 BTC | 0.0008% |
5 | ![]() | ETH-USDC | $1.002 0.0000378 Btc | $138,400,551.00 74,993.098 ETH | 0.0094% |
6 | ![]() | ETH-USDC | $1.003 0.0000379 Btc | $129,978,376.00 70,330.612 ETH | 0.0088% |
7 | ![]() | 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | $1.00 0.0000378 Btc | $124,841,365.00 67,085.473 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1 | 0.0084% |
8 | ![]() | 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XDAC17F958D2EE523A2206206994597C13D831EC7 | $0.9979 0.0000377 Btc | $120,892,879.00 121,138,896.676 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | 15.1814% |
9 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $38,046,395.00 1,437.737 BTC | 0.0002% |
10 | ![]() | USDC-USDT | $1.001 0.0000378 Btc | $34,771,197.00 34,741,126.980 USDC | 4.3538% |
11 | ![]() | ETH-USDC | $1.003 0.0000379 Btc | $29,463,914.00 15,942.941 ETH | 0.0020% |
12 | ![]() | 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619 | $1.006 0.0000380 Btc | $26,584,758.00 26,650,315.411 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174 | 3.3399% |
13 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $20,373,768.00 770.185 BTC | 0.0001% |
14 | ![]() | USDC-USD | $0.9999 0.0000378 Btc | $20,284,712.00 20,286,741.013 USDC | 2.5424% |
15 | ![]() | ETH-USDC | $1.003 0.0000379 Btc | $16,732,336.00 8,933.236 ETH | 0.0011% |
16 | ![]() | 0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.9979 0.0000377 Btc | $16,244,256.00 16,278,035.560 0X6B175474E89094C44DA98B954EEDEAC495271D0F | 2.0400% |
17 | ![]() | USDC-USDT | $1.004 0.0000379 Btc | $14,591,944.00 14,531,468.353 USDC | 1.8211% |
18 | ![]() | XRP-USDC | $1.002 0.0000378 Btc | $13,215,406.00 25,467,629.870 XRP | 3.1917% |
19 | ![]() | USDC-USDT | $1.003 0.0000379 Btc | $13,161,240.00 13,119,579.932 USDC | 1.6442% |
20 | ![]() | BTC-USDC | $1.001 0.0000378 Btc | $13,136,991.00 495.841 BTC | 0.0001% |
21 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $12,618,239.00 470.541 BTC | 0.0001% |
22 | ![]() | 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $0.9979 0.0000377 Btc | $12,462,239.00 12,577,188.745 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | 1.5762% |
23 | ![]() | 0X5AEA5775959FBC2557CC8789BC1BF90A239D9A91-0X3355DF6D4C9C3035724FD0E3914DE96A5A83AAF4 | $1.006 0.0000380 Btc | $11,390,856.00 6,061.995 0X5AEA5775959FBC2557CC8789BC1BF90A239D9A91 | 0.0008% |
24 | ![]() | BTC-USDC | $1.004 0.0000379 Btc | $10,133,496.00 378.848 BTC | 0.0000% |
25 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $10,098,296.00 10,081,945.584 USDC | 1.2635% |
26 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $9,777,799.00 369.393 BTC | 0.0000% |
27 | ![]() | USDC-EUR | $0.9992 0.0000377 Btc | $9,395,192.00 9,402,776.910 USDC | 1.1784% |
28 | ![]() | USDC-USDT | $1.003 0.0000379 Btc | $8,721,855.00 8,696,285.050 USDC | 1.0898% |
29 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $8,420,134.00 8,405,659.898 USDC | 1.0534% |
30 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $7,585,941.00 282.213 BTC | 0.0000% |
31 | ![]() | ETH-USDC | $1.003 0.0000379 Btc | $7,430,375.00 3,974.572 ETH | 0.0005% |
32 | ![]() | 0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D-0XE9E7CEA3DEDCA5984780BAFC599BD69ADD087D56 | $0.9985 0.0000378 Btc | $6,541,788.00 6,550,748.563 0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D | 0.8210% |
33 | ![]() | ETH-USDC | $1.003 0.0000379 Btc | $6,390,534.00 3,412.227 ETH | 0.0004% |
34 | ![]() | 0X55D398326F99059FF775485246999027B3197955-0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D | $0.9981 0.0000377 Btc | $6,272,598.00 6,283,305.430 0X55D398326F99059FF775485246999027B3197955 | 0.7874% |
35 | ![]() | ETH-USDC | $1.003 0.0000379 Btc | $5,231,353.00 2,831.287 ETH | 0.0004% |
36 | ![]() | ETH-USDC | $1.002 0.0000378 Btc | $4,920,970.00 2,664.257 ETH | 0.0003% |
37 | ![]() | 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XDAC17F958D2EE523A2206206994597C13D831EC7 | $1.002 0.0000378 Btc | $4,547,894.00 4,540,128.895 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | 0.5690% |
38 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $4,403,429.00 4,396,629.747 USDC | 0.5510% |
39 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $4,006,136.00 3,999,316.770 USDC | 0.5012% |
40 | ![]() | XRP-USDC | $1.003 0.0000379 Btc | $3,701,651.00 7,083,618.578 XRP | 0.8877% |
41 | ![]() | USDC-USDT | $1.004 0.0000379 Btc | $3,652,881.00 3,639,448.879 USDC | 0.4561% |
42 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $3,594,773.00 3,588,870.103 USDC | 0.4498% |
43 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $3,512,400.00 132.837 BTC | 0.0000% |
44 | ![]() | ETH-USDC | $1.004 0.0000379 Btc | $3,384,578.00 1,806.469 ETH | 0.0002% |
45 | ![]() | 0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.9979 0.0000377 Btc | $3,102,187.00 3,107,479.256 0X6B175474E89094C44DA98B954EEDEAC495271D0F | 0.3894% |
46 | ![]() | USDT-USDC | $1.003 0.0000379 Btc | $2,747,372.00 2,739,228.956 USDT | 0.3433% |
47 | ![]() | USDC-USD | $1.00 0.0000378 Btc | $2,486,625.00 2,486,550.582 USDC | 0.3116% |
48 | ![]() | 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $1.003 0.0000379 Btc | $2,349,888.00 1,256.820 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | 0.0002% |
49 | ![]() | USDC-EUR | $0.9997 0.0000378 Btc | $2,226,955.00 2,227,560.221 USDC | 0.2792% |
50 | ![]() | USDC-USDT | $1.004 0.0000379 Btc | $2,135,311.00 2,126,781.030 USDC | 0.2665% |
51 | ![]() | 0X3355DF6D4C9C3035724FD0E3914DE96A5A83AAF4-0X5AEA5775959FBC2557CC8789BC1BF90A239D9A91 | $1.005 0.0000380 Btc | $2,027,845.00 2,046,207.814 0X3355DF6D4C9C3035724FD0E3914DE96A5A83AAF4 | 0.2564% |
52 | ![]() | UDC-USD | $1.00 0.0000378 Btc | $1,912,582.00 1,912,199.652 UDC | 0.2396% |
53 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $1,632,777.00 1,630,065.278 USDC | 0.2043% |
54 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $1,326,168.00 1,324,624.238 USDC | 0.1660% |
55 | ![]() | USDT-USDC | $1.003 0.0000379 Btc | $1,227,383.00 1,223,833.947 USDT | 0.1534% |
56 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $1,171,287.00 44.238 BTC | 0.0000% |
57 | ![]() | USDC-GBP | $0.9995 0.0000378 Btc | $1,166,395.00 1,166,941.068 USDC | 0.1462% |
58 | ![]() | USDC-USD | $1.00 0.0000378 Btc | $1,036,780.00 1,036,365.505 USDC | 0.1299% |
59 | ![]() | ETH-USDC | $1.004 0.0000379 Btc | $1,024,834.00 554.087 ETH | 0.0001% |
60 | ![]() | BTC-USDC | $1.00 0.0000378 Btc | $914,134.00 34.502 BTC | 0.0000% |
61 | ![]() | XRP-USDC | $1.003 0.0000379 Btc | $899,926.00 1,707,198.000 XRP | 0.2140% |
62 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $830,216.00 31.405 BTC | 0.0000% |
63 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $804,992.00 803,470.144 USDC | 0.1007% |
64 | ![]() | 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $0.9973 0.0000377 Btc | $741,415.00 752,186.577 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | 0.0943% |
65 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $711,555.00 26.897 BTC | 0.0000% |
66 | ![]() | ETH-USDC | $1.003 0.0000379 Btc | $700,463.00 377.374 ETH | 0.0000% |
67 | ![]() | ETH-USDC | $1.003 0.0000379 Btc | $633,260.00 341.667 ETH | 0.0000% |
68 | ![]() | DOGE-USDC | $1.003 0.0000379 Btc | $577,309.00 8,359,968.994 DOGE | 1.0477% |
69 | ![]() | TRX-USDC | $1.003 0.0000379 Btc | $526,493.00 6,758,155.900 TRX | 0.8469% |
70 | ![]() | BTC-USDC | $1.004 0.0000379 Btc | $512,623.00 19.100 BTC | 0.0000% |
71 | ![]() | OP-USDC | $1.003 0.0000379 Btc | $499,542.00 358,590.000 OP | 0.0449% |
72 | ![]() | 0X0B7007C13325C48911F73A2DAD5FA5DCBF808ADC-0XE514D9DEB7966C8BE0CA922DE8A064264EA6BCD4 | $0.9989 0.0000377 Btc | $493,968.00 504,102.601 0X0B7007C13325C48911F73A2DAD5FA5DCBF808ADC | 0.0632% |
73 | ![]() | EOS-USDC | $1.003 0.0000379 Btc | $473,340.00 536,656.500 EOS | 0.0673% |
74 | ![]() | MATIC-USDC | $1.003 0.0000379 Btc | $467,033.00 584,592.000 MATIC | 0.0733% |
75 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $443,747.00 442,863.075 USDC | 0.0555% |
76 | ![]() | ADA-USDC | $1.003 0.0000379 Btc | $417,806.00 1,223,755.000 ADA | 0.1534% |
77 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $409,590.00 408,906.440 USDC | 0.0512% |
78 | ![]() | 0X8AE125E8653821E851F12A49F7765DB9A9CE7384-0X7F5C764CBC14F9669B88837CA1490CCA17C31607 | $1.001 0.0000378 Btc | $389,771.00 391,674.672 0X8AE125E8653821E851F12A49F7765DB9A9CE7384 | 0.0491% |
79 | ![]() | ATOM-USDC | $1.003 0.0000379 Btc | $357,283.00 35,808.550 ATOM | 0.0045% |
80 | ![]() | AVAX-USDC | $1.003 0.0000379 Btc | $347,755.00 24,033.800 AVAX | 0.0030% |
81 | ![]() | APE-USDC | $1.003 0.0000379 Btc | $304,272.00 101,397.070 APE | 0.0127% |
82 | ![]() | ETH-USDC | $1.003 0.0000379 Btc | $290,562.00 157.153 ETH | 0.0000% |
83 | ![]() | UDC-USDT | $1.002 0.0000379 Btc | $288,674.00 288,180.428 UDC | 0.0361% |
84 | ![]() | LTC-USDC | $1.003 0.0000379 Btc | $231,186.00 2,598.172 LTC | 0.0003% |
85 | ![]() | 0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9-0X7F5C764CBC14F9669B88837CA1490CCA17C31607 | $1.001 0.0000378 Btc | $228,731.00 228,736.674 0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9 | 0.0287% |
86 | ![]() | BCH-USDC | $1.003 0.0000379 Btc | $216,824.00 1,916.425 BCH | 0.0002% |
87 | ![]() | BNB-USDC | $1.003 0.0000379 Btc | $202,632.00 740.003 BNB | 0.0001% |
88 | ![]() | LTC-USDC | $1.003 0.0000379 Btc | $196,882.00 2,186.641 LTC | 0.0003% |
89 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $174,877.00 6.613 BTC | 0.0000% |
90 | ![]() | NEAR-USDC | $1.003 0.0000379 Btc | $169,867.00 114,717.600 NEAR | 0.0144% |
91 | ![]() | APE-USDC | $1.003 0.0000379 Btc | $169,047.00 58,192.800 APE | 0.0073% |
92 | ![]() | DOGE-USDC | $1.003 0.0000379 Btc | $134,537.00 1,989,561.262 DOGE | 0.2493% |
93 | ![]() | TRX-USDC | $1.003 0.0000379 Btc | $129,712.00 1,676,286.000 TRX | 0.2101% |
94 | ![]() | BTC-USDC | $1.003 0.0000379 Btc | $111,738.00 4.218 BTC | 0.0000% |
95 | ![]() | MATIC-USDC | $1.003 0.0000379 Btc | $96,266.00 125,119.600 MATIC | 0.0157% |
96 | ![]() | XLM-USDC | $1.003 0.0000379 Btc | $90,224.00 1,027,533.000 XLM | 0.1288% |
97 | ![]() | FXS-USDC | $1.003 0.0000379 Btc | $86,183.00 13,901.800 FXS | 0.0017% |
98 | ![]() | USDC-EUR | $0.9987 0.0000377 Btc | $76,489.00 76,591.344 USDC | 0.0096% |
99 | ![]() | BTC-USDC | $1.004 0.0000379 Btc | $48,558.00 1.801 BTC | 0.0000% |
100 | ![]() | USDC-USDT | $1.002 0.0000379 Btc | $39,845.00 39,761.078 USDC | 0.0050% |
Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x30D2a9F5FDf90ACe8c17952cbb4eE48a55D916A7
Contract Name:
UpgradeBeaconProxy
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.6.11; // ============ External Imports ============ import {Address} from "@openzeppelin/contracts/utils/Address.sol"; /** * @title UpgradeBeaconProxy * @notice * Proxy contract which delegates all logic, including initialization, * to an implementation contract. * The implementation contract is stored within an Upgrade Beacon contract; * the implementation contract can be changed by performing an upgrade on the Upgrade Beacon contract. * The Upgrade Beacon contract for this Proxy is immutably specified at deployment. * @dev This implementation combines the gas savings of keeping the UpgradeBeacon address outside of contract storage * found in 0age's implementation: * https://github.com/dharma-eng/dharma-smart-wallet/blob/master/contracts/proxies/smart-wallet/UpgradeBeaconProxyV1.sol * With the added safety checks that the UpgradeBeacon and implementation are contracts at time of deployment * found in OpenZeppelin's implementation: * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/beacon/BeaconProxy.sol */ contract UpgradeBeaconProxy { // ============ Immutables ============ // Upgrade Beacon address is immutable (therefore not kept in contract storage) address private immutable upgradeBeacon; // ============ Constructor ============ /** * @notice Validate that the Upgrade Beacon is a contract, then set its * address immutably within this contract. * Validate that the implementation is also a contract, * Then call the initialization function defined at the implementation. * The deployment will revert and pass along the * revert reason if the initialization function reverts. * @param _upgradeBeacon Address of the Upgrade Beacon to be stored immutably in the contract * @param _initializationCalldata Calldata supplied when calling the initialization function */ constructor(address _upgradeBeacon, bytes memory _initializationCalldata) payable { // Validate the Upgrade Beacon is a contract require(Address.isContract(_upgradeBeacon), "beacon !contract"); // set the Upgrade Beacon upgradeBeacon = _upgradeBeacon; // Validate the implementation is a contract address _implementation = _getImplementation(_upgradeBeacon); require( Address.isContract(_implementation), "beacon implementation !contract" ); // Call the initialization function on the implementation if (_initializationCalldata.length > 0) { _initialize(_implementation, _initializationCalldata); } } // ============ External Functions ============ /** * @notice Forwards all calls with data to _fallback() * No public functions are declared on the contract, so all calls hit fallback */ fallback() external payable { _fallback(); } /** * @notice Forwards all calls with no data to _fallback() */ receive() external payable { _fallback(); } // ============ Private Functions ============ /** * @notice Call the initialization function on the implementation * Used at deployment to initialize the proxy * based on the logic for initialization defined at the implementation * @param _implementation - Contract to which the initalization is delegated * @param _initializationCalldata - Calldata supplied when calling the initialization function */ function _initialize( address _implementation, bytes memory _initializationCalldata ) private { // Delegatecall into the implementation, supplying initialization calldata. (bool _ok, ) = _implementation.delegatecall(_initializationCalldata); // Revert and include revert data if delegatecall to implementation reverts. if (!_ok) { assembly { returndatacopy(0, 0, returndatasize()) revert(0, returndatasize()) } } } /** * @notice Delegates function calls to the implementation contract returned by the Upgrade Beacon */ function _fallback() private { _delegate(_getImplementation()); } /** * @notice Delegate function execution to the implementation contract * @dev This is a low level function that doesn't return to its internal * call site. It will return whatever is returned by the implementation to the * external caller, reverting and returning the revert data if implementation * reverts. * @param _implementation - Address to which the function execution is delegated */ function _delegate(address _implementation) private { 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()) // Delegatecall to the implementation, supplying calldata and gas. // Out and outsize are set to zero - instead, use the return buffer. let result := delegatecall( gas(), _implementation, 0, calldatasize(), 0, 0 ) // Copy the returned data from the return buffer. returndatacopy(0, 0, returndatasize()) switch result // Delegatecall returns 0 on error. case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } /** * @notice Call the Upgrade Beacon to get the current implementation contract address * @return _implementation Address of the current implementation. */ function _getImplementation() private view returns (address _implementation) { _implementation = _getImplementation(upgradeBeacon); } /** * @notice Call the Upgrade Beacon to get the current implementation contract address * @dev _upgradeBeacon is passed as a parameter so that * we can also use this function in the constructor, * where we can't access immutable variables. * @param _upgradeBeacon Address of the UpgradeBeacon storing the current implementation * @return _implementation Address of the current implementation. */ function _getImplementation(address _upgradeBeacon) private view returns (address _implementation) { // Get the current implementation address from the upgrade beacon. (bool _ok, bytes memory _returnData) = _upgradeBeacon.staticcall(""); // Revert and pass along revert message if call to upgrade beacon reverts. require(_ok, string(_returnData)); // Set the implementation to the address returned from the upgrade beacon. _implementation = abi.decode(_returnData, (address)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 999999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_upgradeBeacon","type":"address"},{"internalType":"bytes","name":"_initializationCalldata","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405260405161058b38038061058b8339818101604052604081101561002657600080fd5b81516020830180516040519294929383019291908464010000000082111561004d57600080fd5b90830190602082018581111561006257600080fd5b825164010000000081118282018810171561007c57600080fd5b82525081516020918201929091019080838360005b838110156100a9578181015183820152602001610091565b50505050905090810190601f1680156100d65780820380516001836020036101000a031916815260200191505b506040525050506100f0826101d060201b6100291760201c565b610134576040805162461bcd60e51b815260206004820152601060248201526f18995858dbdb880858dbdb9d1c9858dd60821b604482015290519081900360640190fd5b6001600160601b0319606083901b166080526000610151836101d6565b9050610166816101d060201b6100291760201c565b6101b7576040805162461bcd60e51b815260206004820152601f60248201527f626561636f6e20696d706c656d656e746174696f6e2021636f6e747261637400604482015290519081900360640190fd5b8151156101c8576101c881836102d6565b50505061038f565b3b151590565b604051600090819081906001600160a01b0385169082818181855afa9150503d8060008114610221576040519150601f19603f3d011682016040523d82523d6000602084013e610226565b606091505b50915091508181906102b65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561027b578181015183820152602001610263565b50505050905090810190601f1680156102a85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508080602001905160208110156102cc57600080fd5b5051949350505050565b6000826001600160a01b0316826040518082805190602001908083835b602083106103125780518252601f1990920191602091820191016102f3565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610372576040519150601f19603f3d011682016040523d82523d6000602084013e610377565b606091505b505090508061038a573d6000803e3d6000fd5b505050565b60805160601c6101e06103ab60003980603652506101e06000f3fe60806040523661001357610011610017565b005b6100115b61002761002261002f565b61005f565b565b3b151590565b600061005a7f0000000000000000000000000000000000000000000000000000000000000000610083565b905090565b3660008037600080366000845af43d6000803e80801561007e573d6000f35b3d6000fd5b6040516000908190819073ffffffffffffffffffffffffffffffffffffffff85169082818181855afa9150503d80600081146100db576040519150601f19603f3d011682016040523d82523d6000602084013e6100e0565b606091505b509150915081819061018a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561014f578181015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508080602001905160208110156101a057600080fd5b505194935050505056fea26469706673582212207a913a499405f220fe73d6c33af6d31fa3d6dd38aef5fe5d043818455b8bd55c64736f6c63430007060033000000000000000000000000969d515486ba6133400ac9c73298586426a090f500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000