Token USD Coin
Overview ERC20
Price
$1.01 @ 0.059062 AVAX (+0.17%)
Fully Diluted Market Cap
Total Supply:
362,147,978.78 USDC
Holders:
107,099 addresses
Contract:
Decimals:
6
Official Site:
[ Download CSV Export ]
[ Download CSV Export ]
OVERVIEW
USDC is a fully collateralized US Dollar stablecoin developed by CENTRE, the open source project with Circle being the first of several forthcoming issuers.Market
Volume (24H) | : | $3,623,313,332.00 |
Market Capitalization | : | $34,087,347,761.00 |
Circulating Supply | : | 33,917,847,135.00 USDC |
Market Data Source: Coinmarketcap |
Update? Click here to update the token ICO / general information
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|---|---|---|---|---|
1 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $395,338,208.00 14,219.904 BTC | 0.0016% |
2 | ![]() | 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $1.007 0.0000362 Btc | $225,487,842.00 223,010,866.601 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | 25.8768% |
3 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $209,021,680.00 207,751,288.668 USDC | 24.1061% |
4 | ![]() | 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XDAC17F958D2EE523A2206206994597C13D831EC7 | $1.007 0.0000362 Btc | $147,416,448.00 146,432,343.198 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | 16.9911% |
5 | ![]() | BTC-USDC | $1.008 0.0000363 Btc | $89,224,133.00 3,204.514 BTC | 0.0004% |
6 | ![]() | 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | $1.006 0.0000362 Btc | $81,494,996.00 46,420.848 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1 | 0.0054% |
7 | ![]() | ETH-USDC | $1.008 0.0000363 Btc | $45,544,435.00 25,768.781 ETH | 0.0030% |
8 | ![]() | 0X912CE59144191C1204E64559FE8253A0E49E6548-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | $1.01 0.0000363 Btc | $41,372,016.00 33,159,599.371 0X912CE59144191C1204E64559FE8253A0E49E6548 | 3.8476% |
9 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $32,579,418.00 32,377,935.223 USDC | 3.7569% |
10 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $30,228,529.00 30,040,738.921 USDC | 3.4857% |
11 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $19,935,689.00 720.121 BTC | 0.0001% |
12 | ![]() | XRP-USDC | $1.006 0.0000362 Btc | $19,512,799.00 43,331,800.000 XRP | 5.0279% |
13 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $17,348,649.00 17,241,607.570 USDC | 2.0006% |
14 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $13,502,986.00 13,422,103.229 USDC | 1.5574% |
15 | ![]() | ETH-USDC | $1.006 0.0000362 Btc | $12,960,356.00 7,400.370 ETH | 0.0009% |
16 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $11,487,896.00 11,423,528.978 USDC | 1.3255% |
17 | ![]() | USDC-USD | $0.9998 0.0000360 Btc | $11,129,748.00 11,131,974.056 USDC | 1.2917% |
18 | ![]() | ETH-USDC | $1.006 0.0000362 Btc | $10,893,388.00 6,200.064 ETH | 0.0007% |
19 | ![]() | 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $1.007 0.0000362 Btc | $9,792,749.00 9,644,177.144 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | 1.1190% |
20 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $9,033,563.00 326.307 BTC | 0.0000% |
21 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $7,765,431.00 280.625 BTC | 0.0000% |
22 | ![]() | 0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D-0XE9E7CEA3DEDCA5984780BAFC599BD69ADD087D56 | $1.006 0.0000362 Btc | $7,738,801.00 7,689,975.694 0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D | 0.8923% |
23 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $7,176,332.00 258.168 BTC | 0.0000% |
24 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $7,020,383.00 6,979,018.687 USDC | 0.8098% |
25 | ![]() | USDC-USDT | $1.005 0.0000362 Btc | $6,979,925.00 6,946,994.311 USDC | 0.8061% |
26 | ![]() | LTC-USDC | $1.006 0.0000362 Btc | $6,783,863.00 71,955.860 LTC | 0.0083% |
27 | ![]() | 0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $1.007 0.0000362 Btc | $6,483,663.00 6,439,588.531 0X6B175474E89094C44DA98B954EEDEAC495271D0F | 0.7472% |
28 | ![]() | BCH-USDC | $1.006 0.0000362 Btc | $6,046,649.00 47,885.033 BCH | 0.0056% |
29 | ![]() | 0X912CE59144191C1204E64559FE8253A0E49E6548-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | $1.004 0.0000361 Btc | $5,905,007.00 4,751,799.515 0X912CE59144191C1204E64559FE8253A0E49E6548 | 0.5514% |
30 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $4,368,710.00 4,341,569.911 USDC | 0.5038% |
31 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $4,250,236.00 4,224,434.295 USDC | 0.4902% |
32 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $4,081,015.00 146.860 BTC | 0.0000% |
33 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $3,818,131.00 137.950 BTC | 0.0000% |
34 | ![]() | ETH-USDC | $1.006 0.0000362 Btc | $3,312,978.00 1,885.210 ETH | 0.0002% |
35 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $3,273,319.00 3,254,875.206 USDC | 0.3777% |
36 | ![]() | FIL-USDC | $1.006 0.0000362 Btc | $3,183,210.00 578,900.462 FIL | 0.0672% |
37 | ![]() | ETH-USDC | $1.006 0.0000362 Btc | $3,168,428.00 1,796.268 ETH | 0.0002% |
38 | ![]() | USDC-EUR | $1.002 0.0000360 Btc | $2,615,048.00 2,610,406.739 USDC | 0.3029% |
39 | ![]() | USDT-USDC | $1.006 0.0000362 Btc | $2,358,768.00 2,341,750.328 USDT | 0.2717% |
40 | ![]() | ETH-USDC | $1.008 0.0000363 Btc | $2,327,522.00 1,317.402 ETH | 0.0002% |
41 | ![]() | 0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8-0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1 | $1.01 0.0000363 Btc | $2,292,726.00 2,250,970.431 0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | 0.2612% |
42 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $2,216,172.00 79.611 BTC | 0.0000% |
43 | ![]() | BTC-USDC | $1.008 0.0000363 Btc | $2,191,874.00 78.749 BTC | 0.0000% |
44 | ![]() | 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | $1.004 0.0000361 Btc | $2,114,131.00 1,205.632 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1 | 0.0001% |
45 | ![]() | ETC-USDC | $1.006 0.0000362 Btc | $1,948,192.00 95,929.751 ETC | 0.0111% |
46 | ![]() | ETH-USDC | $1.006 0.0000362 Btc | $1,891,204.00 1,071.380 ETH | 0.0001% |
47 | ![]() | 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83 | $1.008 0.0000363 Btc | $1,863,752.00 1,875,899.488 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75 | 0.2177% |
48 | ![]() | 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $1.006 0.0000362 Btc | $1,808,070.00 1,784,061.099 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | 0.2070% |
49 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $1,742,971.00 1,732,519.242 USDC | 0.2010% |
50 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $1,638,529.00 59.028 BTC | 0.0000% |
51 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $1,486,946.00 53.484 BTC | 0.0000% |
52 | ![]() | USDT-USDC | $1.006 0.0000362 Btc | $1,403,503.00 1,393,275.265 USDT | 0.1617% |
53 | ![]() | ETH-USDC | $1.006 0.0000362 Btc | $1,231,966.00 698.490 ETH | 0.0001% |
54 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $1,168,731.00 1,161,386.631 USDC | 0.1348% |
55 | ![]() | ETH-USDC | $1.007 0.0000363 Btc | $1,103,729.00 624.801 ETH | 0.0001% |
56 | ![]() | 0X3D9907F9A368AD0A51BE60F7DA3B97CF940982D8-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | $1.004 0.0000361 Btc | $1,100,232.00 374.818 0X3D9907F9A368AD0A51BE60F7DA3B97CF940982D8 | 0.0000% |
57 | ![]() | USDC-USDT | $1.003 0.0000361 Btc | $1,047,035.00 1,044,076.640 USDC | 0.1211% |
58 | ![]() | BTC-USDC | $1.007 0.0000363 Btc | $1,009,011.00 36.284 BTC | 0.0000% |
59 | ![]() | EOS-USDC | $1.006 0.0000362 Btc | $1,005,351.00 889,192.922 EOS | 0.1032% |
60 | ![]() | EOS-USDC | $1.006 0.0000362 Btc | $930,237.00 812,353.900 EOS | 0.0943% |
61 | ![]() | XRP-USDC | $1.006 0.0000362 Btc | $920,377.00 2,045,373.000 XRP | 0.2373% |
62 | ![]() | 0X55D398326F99059FF775485246999027B3197955-0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D | $1.006 0.0000362 Btc | $911,266.00 904,424.823 0X55D398326F99059FF775485246999027B3197955 | 0.1049% |
63 | ![]() | 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $1.008 0.0000363 Btc | $882,568.00 873,283.329 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | 0.1013% |
64 | ![]() | ATOM-USDC | $1.006 0.0000362 Btc | $866,859.00 76,834.377 ATOM | 0.0089% |
65 | ![]() | EOS-USDC | $1.006 0.0000362 Btc | $850,122.00 752,703.100 EOS | 0.0873% |
66 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $845,854.00 30.425 BTC | 0.0000% |
67 | ![]() | BTC-USDC | $1.006 0.0000362 Btc | $826,408.00 29.750 BTC | 0.0000% |
68 | ![]() | USDC-USD | $0.9998 0.0000360 Btc | $712,209.00 712,329.612 USDC | 0.0827% |
69 | ![]() | USDC-GBP | $1.001 0.0000360 Btc | $709,439.00 708,712.981 USDC | 0.0822% |
70 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $697,559.00 693,175.400 USDC | 0.0804% |
71 | ![]() | ETH-USDC | $1.006 0.0000362 Btc | $542,867.00 308.004 ETH | 0.0000% |
72 | ![]() | OP-USDC | $1.006 0.0000362 Btc | $502,284.00 225,915.800 OP | 0.0262% |
73 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $475,487.00 472,740.560 USDC | 0.0549% |
74 | ![]() | DOGE-USDC | $1.006 0.0000362 Btc | $474,310.00 6,357,658.000 DOGE | 0.7377% |
75 | ![]() | AVAX-USDC | $1.008 0.0000363 Btc | $465,600.00 27,158.820 AVAX | 0.0032% |
76 | ![]() | BTC-USDC | $1.008 0.0000363 Btc | $465,191.00 16.716 BTC | 0.0000% |
77 | ![]() | USDT-USDC | $1.007 0.0000363 Btc | $437,056.00 433,407.700 USDT | 0.0503% |
78 | ![]() | UDC-USD | $0.9994 0.0000360 Btc | $429,958.00 430,215.933 UDC | 0.0499% |
79 | ![]() | UDC-USDT | $1.006 0.0000362 Btc | $411,510.00 408,939.960 UDC | 0.0475% |
80 | ![]() | 0X2170ED0880AC9A755FD29B2688956BD959F933F8-0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D | $1.006 0.0000362 Btc | $406,951.00 231.865 0X2170ED0880AC9A755FD29B2688956BD959F933F8 | 0.0000% |
81 | ![]() | 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | $1.009 0.0000363 Btc | $295,797.00 168.185 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1 | 0.0000% |
82 | ![]() | EOS-USDC | $1.008 0.0000363 Btc | $282,029.00 249,944.950 EOS | 0.0290% |
83 | ![]() | AAVE-USDC | $1.008 0.0000363 Btc | $226,912.00 3,152.674 AAVE | 0.0004% |
84 | ![]() | MATIC-USDC | $1.006 0.0000362 Btc | $189,285.00 172,508.600 MATIC | 0.0200% |
85 | ![]() | USDC-USD | $1.00 0.0000360 Btc | $185,020.00 185,021.685 USDC | 0.0215% |
86 | ![]() | 0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9-0X7F5C764CBC14F9669B88837CA1490CCA17C31607 | $1.006 0.0000362 Btc | $172,109.00 170,671.820 0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9 | 0.0198% |
87 | ![]() | APE-USDC | $1.006 0.0000362 Btc | $153,147.00 37,272.600 APE | 0.0043% |
88 | ![]() | BTC-USDC | $1.007 0.0000363 Btc | $149,210.00 5.356 BTC | 0.0000% |
89 | ![]() | USDC-USD | $0.999 0.0000359 Btc | $138,090.00 138,226.489 USDC | 0.0160% |
90 | ![]() | APE-USDC | $1.008 0.0000363 Btc | $133,233.00 32,362.540 APE | 0.0038% |
91 | ![]() | LTC-USDC | $1.006 0.0000362 Btc | $122,429.00 1,297.704 LTC | 0.0002% |
92 | ![]() | TRX-USDC | $1.006 0.0000362 Btc | $118,401.00 1,836,010.000 TRX | 0.2130% |
93 | ![]() | ATOM-USDC | $1.008 0.0000363 Btc | $116,577.00 10,326.380 ATOM | 0.0012% |
94 | ![]() | FXS-USDC | $1.006 0.0000362 Btc | $115,153.00 14,735.000 FXS | 0.0017% |
95 | ![]() | 0X340FE1D898ECCAAD394E2BA0FC1F93D27C7B717A-0X7F5C764CBC14F9669B88837CA1490CCA17C31607 | $1.006 0.0000362 Btc | $109,072.00 103,923.641 0X340FE1D898ECCAAD394E2BA0FC1F93D27C7B717A | 0.0121% |
96 | ![]() | XLM-USDC | $1.006 0.0000362 Btc | $105,229.00 1,146,206.400 XLM | 0.1330% |
97 | ![]() | USDC-USDT | $1.006 0.0000362 Btc | $75,441.00 74,969.009 USDC | 0.0087% |
98 | ![]() | USDC-EUR | $1.002 0.0000361 Btc | $68,284.00 68,147.076 USDC | 0.0079% |
99 | ![]() | USDC-EUR | $1.002 0.0000361 Btc | $49,406.00 49,307.763 USDC | 0.0057% |
100 | ![]() | BTC-USDC | $1.008 0.0000363 Btc | $6,841.96 0.245 BTC | 0.0000% |
Contract Name:
FiatTokenProxy
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-11-25 */ /** * SPDX-License-Identifier: MIT * * Copyright (c) 2018 zOS Global Limited. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ // File: contracts/upgradeability/Proxy.sol pragma solidity 0.6.12; /** * @notice Implements delegation of calls to other contracts, with proper * forwarding of return values and bubbling of failures. * It defines a fallback function that delegates all calls to the address * returned by the abstract _implementation() internal function. * @dev Forked from https://github.com/zeppelinos/zos-lib/blob/8a16ef3ad17ec7430e3a9d2b5e3f39b8204f8c8d/contracts/upgradeability/Proxy.sol * Modifications: * 1. Reformat and conform to Solidity 0.6 syntax (5/13/20) */ abstract contract Proxy { /** * @dev Fallback function. * Implemented entirely in `_fallback`. */ fallback() external payable { _fallback(); } /** * @return The Address of the implementation. */ function _implementation() internal virtual view returns (address); /** * @dev Delegates execution to an implementation contract. * This is a low level function that doesn't return to its internal call site. * It will return to the external caller whatever the implementation returns. * @param implementation Address to delegate. */ function _delegate(address implementation) internal { 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 Function that is run as the first thing in the fallback function. * Can be redefined in derived contracts to add functionality. * Redefinitions must call super._willFallback(). */ function _willFallback() internal virtual {} /** * @dev fallback implementation. * Extracted to enable manual triggering. */ function _fallback() internal { _willFallback(); _delegate(_implementation()); } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } } // File: contracts/upgradeability/UpgradeabilityProxy.sol pragma solidity 0.6.12; /** * @notice This contract implements a proxy that allows to change the * implementation address to which it will delegate. * Such a change is called an implementation upgrade. * @dev Forked from https://github.com/zeppelinos/zos-lib/blob/8a16ef3ad17ec7430e3a9d2b5e3f39b8204f8c8d/contracts/upgradeability/UpgradeabilityProxy.sol * Modifications: * 1. Reformat, conform to Solidity 0.6 syntax, and add error messages (5/13/20) * 2. Use Address utility library from the latest OpenZeppelin (5/13/20) */ contract UpgradeabilityProxy is Proxy { /** * @dev Emitted when the implementation is upgraded. * @param implementation Address of the new implementation. */ event Upgraded(address implementation); /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "org.zeppelinos.proxy.implementation", and is * validated in the constructor. */ bytes32 private constant IMPLEMENTATION_SLOT = 0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3; /** * @dev Contract constructor. * @param implementationContract Address of the initial implementation. */ constructor(address implementationContract) public { assert( IMPLEMENTATION_SLOT == keccak256("org.zeppelinos.proxy.implementation") ); _setImplementation(implementationContract); } /** * @dev Returns the current implementation. * @return impl Address of the current implementation */ function _implementation() internal override view returns (address impl) { bytes32 slot = IMPLEMENTATION_SLOT; assembly { impl := sload(slot) } } /** * @dev Upgrades the proxy to a new implementation. * @param newImplementation Address of the new implementation. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Sets the implementation address of the proxy. * @param newImplementation Address of the new implementation. */ function _setImplementation(address newImplementation) private { require( Address.isContract(newImplementation), "Cannot set a proxy implementation to a non-contract address" ); bytes32 slot = IMPLEMENTATION_SLOT; assembly { sstore(slot, newImplementation) } } } // File: contracts/upgradeability/AdminUpgradeabilityProxy.sol pragma solidity 0.6.12; /** * @notice This contract combines an upgradeability proxy with an authorization * mechanism for administrative tasks. * @dev Forked from https://github.com/zeppelinos/zos-lib/blob/8a16ef3ad17ec7430e3a9d2b5e3f39b8204f8c8d/contracts/upgradeability/AdminUpgradeabilityProxy.sol * Modifications: * 1. Reformat, conform to Solidity 0.6 syntax, and add error messages (5/13/20) * 2. Remove ifAdmin modifier from admin() and implementation() (5/13/20) */ contract AdminUpgradeabilityProxy is UpgradeabilityProxy { /** * @dev Emitted when the administration has been transferred. * @param previousAdmin Address of the previous admin. * @param newAdmin Address of the new admin. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "org.zeppelinos.proxy.admin", and is * validated in the constructor. */ bytes32 private constant ADMIN_SLOT = 0x10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b; /** * @dev Modifier to check whether the `msg.sender` is the admin. * If it is, it will run the function. Otherwise, it will delegate the call * to the implementation. */ modifier ifAdmin() { if (msg.sender == _admin()) { _; } else { _fallback(); } } /** * @dev Contract constructor. * It sets the `msg.sender` as the proxy administrator. * @param implementationContract address of the initial implementation. */ constructor(address implementationContract) public UpgradeabilityProxy(implementationContract) { assert(ADMIN_SLOT == keccak256("org.zeppelinos.proxy.admin")); _setAdmin(msg.sender); } /** * @return The address of the proxy admin. */ function admin() external view returns (address) { return _admin(); } /** * @return The address of the implementation. */ function implementation() external view returns (address) { return _implementation(); } /** * @dev Changes the admin of the proxy. * Only the current admin can call this function. * @param newAdmin Address to transfer proxy administration to. */ function changeAdmin(address newAdmin) external ifAdmin { require( newAdmin != address(0), "Cannot change the admin of a proxy to the zero address" ); emit AdminChanged(_admin(), newAdmin); _setAdmin(newAdmin); } /** * @dev Upgrade the backing implementation of the proxy. * Only the admin can call this function. * @param newImplementation Address of the new implementation. */ function upgradeTo(address newImplementation) external ifAdmin { _upgradeTo(newImplementation); } /** * @dev Upgrade the backing implementation of the proxy and call a function * on the new implementation. * This is useful to initialize the proxied contract. * @param newImplementation Address of the new implementation. * @param data Data to send as msg.data in the low level call. * It should include the signature and the parameters of the function to be * called, as described in * https://solidity.readthedocs.io/en/develop/abi-spec.html#function-selector-and-argument-encoding. */ function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin { _upgradeTo(newImplementation); // prettier-ignore // solhint-disable-next-line avoid-low-level-calls (bool success,) = address(this).call{value: msg.value}(data); // solhint-disable-next-line reason-string require(success); } /** * @return adm The admin slot. */ function _admin() internal view returns (address adm) { bytes32 slot = ADMIN_SLOT; assembly { adm := sload(slot) } } /** * @dev Sets the address of the proxy admin. * @param newAdmin Address of the new proxy admin. */ function _setAdmin(address newAdmin) internal { bytes32 slot = ADMIN_SLOT; assembly { sstore(slot, newAdmin) } } /** * @dev Only fall back when the sender is not the admin. */ function _willFallback() internal override { require( msg.sender != _admin(), "Cannot call fallback function from the proxy admin" ); super._willFallback(); } } // File: contracts/FiatTokenProxy.sol pragma solidity 0.6.12; /** * @title FiatTokenProxy * @dev This contract proxies FiatToken calls and enables FiatToken upgrades */ contract FiatTokenProxy is AdminUpgradeabilityProxy { constructor(address implementationContract) public AdminUpgradeabilityProxy(implementationContract) {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"implementationContract","type":"address"}],"stateMutability":"nonpayable","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":false,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516108a93803806108a98339818101604052602081101561003357600080fd5b5051808061004081610051565b5061004a336100c3565b5050610123565b610064816100e760201b61042a1760201c565b61009f5760405162461bcd60e51b815260040180806020018281038252603b81526020018061086e603b913960400191505060405180910390fd5b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c355565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b55565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061011b57508115155b949350505050565b61073c806101326000396000f3fe60806040526004361061005a5760003560e01c80635c60da1b116100435780635c60da1b146101315780638f2839701461016f578063f851a440146101af5761005a565b80633659cfe6146100645780634f1ef286146100a4575b6100626101c4565b005b34801561007057600080fd5b506100626004803603602081101561008757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101de565b610062600480360360408110156100ba57600080fd5b73ffffffffffffffffffffffffffffffffffffffff82351691908101906040810160208201356401000000008111156100f257600080fd5b82018360208201111561010457600080fd5b8035906020019184600183028401116401000000008311171561012657600080fd5b509092509050610232565b34801561013d57600080fd5b50610146610309565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561017b57600080fd5b506100626004803603602081101561019257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610318565b3480156101bb57600080fd5b50610146610420565b6101cc610466565b6101dc6101d76104fa565b61051f565b565b6101e6610543565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102275761022281610568565b61022f565b61022f6101c4565b50565b61023a610543565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102fc5761027683610568565b60003073ffffffffffffffffffffffffffffffffffffffff16348484604051808383808284376040519201945060009350909150508083038185875af1925050503d80600081146102e3576040519150601f19603f3d011682016040523d82523d6000602084013e6102e8565b606091505b50509050806102f657600080fd5b50610304565b6103046101c4565b505050565b60006103136104fa565b905090565b610320610543565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102275773ffffffffffffffffffffffffffffffffffffffff81166103bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806106966036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103e8610543565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301528051918290030190a1610222816105bd565b6000610313610543565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061045e57508115155b949350505050565b61046e610543565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156104f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806106646032913960400191505060405180910390fd5b6101dc6101dc565b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35490565b3660008037600080366000845af43d6000803e80801561053e573d6000f35b3d6000fd5b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5490565b610571816105e1565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b9181900360200190a150565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b55565b6105ea8161042a565b61063f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b8152602001806106cc603b913960400191505060405180910390fd5b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35556fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a26469706673582212206715e283f350a976c05fe8b17fc01929cb137086f941d36864b48c4269d883b264736f6c634300060c003343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e747261637420616464726573730000000000000000000000007f2239511051b875ccf84dab02d5a307adcd51c2
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007f2239511051b875ccf84dab02d5a307adcd51c2
-----Decoded View---------------
Arg [0] : implementationContract (address): 0x7f2239511051b875ccf84dab02d5a307adcd51c2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007f2239511051b875ccf84dab02d5a307adcd51c2
Deployed ByteCode Sourcemap
13106:187:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1924:11;:9;:11::i;:::-;13106:187;11013:111;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11013:111:0;;;;:::i;11680:417::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11680:417:0;;-1:-1:-1;11680:417:0;-1:-1:-1;11680:417:0;:::i;10235:101::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;10531:279;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10531:279:0;;;;:::i;10075:83::-;;;;;;;;;;;;;:::i;3833:103::-;3874:15;:13;:15::i;:::-;3900:28;3910:17;:15;:17::i;:::-;3900:9;:28::i;:::-;3833:103::o;11013:111::-;9481:8;:6;:8::i;:::-;9467:22;;:10;:22;;;9463:100;;;11087:29:::1;11098:17;11087:10;:29::i;:::-;9463:100:::0;;;9540:11;:9;:11::i;:::-;11013:111;:::o;11680:417::-;9481:8;:6;:8::i;:::-;9467:22;;:10;:22;;;9463:100;;;11822:29:::1;11833:17;11822:10;:29::i;:::-;11951:12;11976:4;11968:18;;11994:9;12005:4;;11968:42;;;;;;;;;;::::0;;::::1;::::0;-1:-1:-1;11968:42:0::1;::::0;-1:-1:-1;11968:42:0;;-1:-1:-1;;11968:42:0;;::::1;::::0;;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11950:60;;;12081:7;12073:16;;;::::0;::::1;;9506:1;9463:100:::0;;;9540:11;:9;:11::i;:::-;11680:417;;;:::o;10235:101::-;10284:7;10311:17;:15;:17::i;:::-;10304:24;;10235:101;:::o;10531:279::-;9481:8;:6;:8::i;:::-;9467:22;;:10;:22;;;9463:100;;;10620:22:::1;::::0;::::1;10598:126;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10740:32;10753:8;:6;:8::i;:::-;10740:32;::::0;;::::1;::::0;;::::1;::::0;;;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;10783:19;10793:8;10783:9;:19::i;10075:83::-:0;10115:7;10142:8;:6;:8::i;4705:619::-;4765:4;5233:20;;5076:66;5273:23;;;;;;:42;;-1:-1:-1;5300:15:0;;;5273:42;5265:51;4705:619;-1:-1:-1;;;;4705:619:0:o;12701:216::-;12791:8;:6;:8::i;:::-;12777:22;;:10;:22;;;;12755:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12888:21;:19;:21::i;7026:190::-;6442:66;7187:11;;7164:45::o;2395:1055::-;2730:14;2727:1;2724;2711:34;3051:1;3031;2998:14;2978:1;2945:14;2921:5;2890:177;3144:16;3141:1;3138;3123:38;3184:6;3261:76;;;;3396:16;3393:1;3386:27;3261:76;3301:16;3298:1;3291:27;12159:163;9158:66;12293:11;;12271:44::o;7367:155::-;7434:37;7453:17;7434:18;:37::i;:::-;7487:27;;;;;;;;;;;;;;;;;;;7367:155;:::o;12454:159::-;9158:66;12573:22;12558:48::o;7675:353::-;7771:37;7790:17;7771:18;:37::i;:::-;7749:146;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6442:66;7979:31;7964:57::o
Swarm Source
ipfs://6715e283f350a976c05fe8b17fc01929cb137086f941d36864b48c4269d883b2