Token USD Coin

Overview ERC20

Price
$1.00 @ 0.108966 AVAX (+0.15%)
Fully Diluted Market Cap
Total Supply:
364,619,457.33859 USDC

Holders:
460,078 addresses
Balance
138.325792 USDC

Value
$138.33 ( ~15.0733 AVAX) [0.0000%]
0x1a1ec25dc08e98e5e93f1104b5e5cdd298707d31
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

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):$7,865,319,036.00
Market Capitalization:$25,470,345,699.00
Circulating Supply:25,488,518,022.00 USDC
Market Data Source: Coinmarketcap


Update? Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
1
Binance
USDC-USDT$0.9986
0.0000373 Btc
$362,343,883.00
362,738,502.000 USDC
53.5016%
2
Uniswap V3 (Ethereum)
0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.001
0.0000374 Btc
$251,231,410.00
151,279.094 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2
0.0223%
3
Bybit
BTC-USDC$0.9999
0.0000373 Btc
$245,876,240.00
9,109.701 BTC
0.0013%
4
Bybit
ETH-USDC$0.9999
0.0000373 Btc
$160,599,034.00
96,793.272 ETH
0.0143%
5
DigiFinex
BTC-USDC$1.00
0.0000373 Btc
$97,949,888.00
3,658.988 BTC
0.0005%
6
Biconomy
BTC-USDC$0.9999
0.0000373 Btc
$90,579,916.00
3,353.685 BTC
0.0005%
7
DigiFinex
ETH-USDC$1.00
0.0000373 Btc
$62,159,831.00
37,389.057 ETH
0.0055%
8
Bitrue
BTC-USDC$0.9986
0.0000373 Btc
$54,571,213.00
2,039.251 BTC
0.0003%
9
Uniswap V3 (Ethereum)
0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XDAC17F958D2EE523A2206206994597C13D831EC7$1.001
0.0000374 Btc
$53,182,740.00
53,114,008.709 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48
7.8340%
10
LBank
ETH-USDC$1.00
0.0000373 Btc
$49,478,557.00
29,757.349 ETH
0.0044%
11
Curve (Ethereum)
0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XDAC17F958D2EE523A2206206994597C13D831EC7$1.001
0.0000374 Btc
$32,829,033.00
32,782,829.645 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48
4.8353%
12
Bitrue
ETH-USDC$0.9986
0.0000373 Btc
$30,023,722.00
18,078.430 ETH
0.0027%
13
Biconomy
ETH-USDC$0.9999
0.0000373 Btc
$29,557,589.00
17,821.313 ETH
0.0026%
14
Uniswap V3 (Arbitrum One)
0XAF88D065E77C8CC2239327C5EDB3A432268E5831-0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1$1.00
0.0000373 Btc
$25,616,050.00
25,544,683.610 0XAF88D065E77C8CC2239327C5EDB3A432268E5831
3.7677%
15
LBank
BTC-USDC$1.00
0.0000373 Btc
$22,222,881.00
830.100 BTC
0.0001%
16
DigiFinex
USDC-USDT$1.00
0.0000373 Btc
$19,904,281.00
19,900,329.089 USDC
2.9352%
17
OKX
USDC-USDT$1.00
0.0000373 Btc
$19,822,004.00
19,810,978.907 USDC
2.9220%
18
OKX
BTC-USDC$1.00
0.0000373 Btc
$19,563,535.00
724.899 BTC
0.0001%
19
Binance
BTC-USDC$1.00
0.0000373 Btc
$18,944,042.00
701.221 BTC
0.0001%
20
BingX
USDC-USDT$1.00
0.0000373 Btc
$18,399,047.00
18,391,593.750 USDC
2.7126%
21
BingX
ETH-USDC$0.9999
0.0000373 Btc
$14,403,147.00
8,678.618 ETH
0.0013%
22
OKX
ETH-USDC$1.00
0.0000373 Btc
$12,189,282.00
7,348.968 ETH
0.0011%
23
XT.COM
ETH-USDC$0.9986
0.0000373 Btc
$11,830,052.00
7,129.989 ETH
0.0011%
24
Bybit
XRP-USDC$0.9999
0.0000373 Btc
$11,658,555.00
22,378,501.480 XRP
3.3007%
25
Kraken
USDC-EUR$0.9997
0.0000373 Btc
$11,629,351.00
11,632,315.415 USDC
1.7157%
26
Binance
ETH-USDC$0.9986
0.0000373 Btc
$11,615,271.00
7,000.434 ETH
0.0010%
27
XT.COM
BTC-USDC$0.9986
0.0000373 Btc
$11,592,627.00
429.743 BTC
0.0001%
28
OKX
USDT-USDC$1.00
0.0000373 Btc
$11,066,725.00
11,071,375.441 USDT
1.6330%
29
Bitget
USDC-USDT$1.00
0.0000373 Btc
$9,628,146.00
9,626,992.760 USDC
1.4199%
30
Kraken
USDC-USDT$1.00
0.0000373 Btc
$8,681,659.00
8,679,935.699 USDC
1.2802%
31
WhiteBIT
USDC-USDT$0.9995
0.0000374 Btc
$7,879,341.00
7,883,108.695 USDC
1.1627%
32
Uniswap V3 (Ethereum)
0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.001
0.0000374 Btc
$7,756,853.00
7,760,863.028 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48
1.1447%
33
Kraken
USDC-USD$0.9999
0.0000373 Btc
$6,741,286.00
6,741,960.073 USDC
0.9944%
34
MEXC
USDC-USDT$0.9987
0.0000373 Btc
$6,699,756.00
6,708,209.460 USDC
0.9894%
35
Uniswap V3 (Ethereum)
0X2260FAC5E5542A773AA44FBCFEDF7C193BC2C599-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.001
0.0000374 Btc
$6,081,401.00
224.703 0X2260FAC5E5542A773AA44FBCFEDF7C193BC2C599
0.0000%
36
HTX
USDC-USDT$1.00
0.0000374 Btc
$5,652,806.00
5,648,820.942 USDC
0.8332%
37
BingX
BTC-USDC$0.9999
0.0000373 Btc
$5,244,115.00
193.435 BTC
0.0000%
38
Uniswap V3 (Ethereum)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.001
0.0000374 Btc
$4,481,130.00
4,475,593.677 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.6601%
39
SyncSwap
0X5AEA5775959FBC2557CC8789BC1BF90A239D9A91-0X3355DF6D4C9C3035724FD0E3914DE96A5A83AAF4$0.9927
0.0000371 Btc
$3,857,963.00
2,343.970 0X5AEA5775959FBC2557CC8789BC1BF90A239D9A91
0.0003%
40
Deribit Spot
BTC-USDC$0.9991
0.0000373 Btc
$3,780,506.00
139.934 BTC
0.0000%
41
Bitrue
USDC-USDT$0.9987
0.0000373 Btc
$3,353,628.00
3,357,859.940 USDC
0.4953%
42
Bitstamp
USDC-USD$1.00
0.0000373 Btc
$3,302,003.00
3,301,177.870 USDC
0.4869%
43
Kraken
USDC-GBP$0.9994
0.0000373 Btc
$3,143,416.00
3,145,439.945 USDC
0.4639%
44
KuCoin
USDT-USDC$1.00
0.0000373 Btc
$2,880,404.00
2,880,281.803 USDT
0.4248%
45
Curve (Ethereum)
0XF939E0A03FB07F59A73314E73794BE0E57AC1B4E-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.001
0.0000374 Btc
$2,839,095.00
2,838,143.757 0XF939E0A03FB07F59A73314E73794BE0E57AC1B4E
0.4186%
46
Curve (Ethereum)
0X853D955ACEF822DB058EB8505911ED77F175B99E-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.001
0.0000374 Btc
$2,642,835.00
2,644,903.958 0X853D955ACEF822DB058EB8505911ED77F175B99E
0.3901%
47
Phemex
USDC-USDT$1.00
0.0000373 Btc
$1,984,305.00
1,983,911.070 USDC
0.2926%
48
KuCoin
BTC-USDC$1.00
0.0000373 Btc
$1,945,897.00
72.590 BTC
0.0000%
49
KuCoin
ETH-USDC$1.00
0.0000373 Btc
$1,928,303.00
1,159.830 ETH
0.0002%
50
Cryptology
BTC-USDC$1.00
0.0000373 Btc
$1,874,591.00
70.051 BTC
0.0000%
51
Kraken
BTC-USDC$0.9999
0.0000373 Btc
$1,834,992.00
68.493 BTC
0.0000%
52
Uniswap V2 (Ethereum)
0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.001
0.0000374 Btc
$1,833,794.00
1,103.462 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2
0.0002%
53
LATOKEN
USDC-USDT$1.00
0.0000373 Btc
$1,762,538.00
1,762,346.253 USDC
0.2599%
54
KuCoin
USDC-USDT$1.00
0.0000373 Btc
$1,735,737.00
1,735,548.150 USDC
0.2560%
55
Coinsbit
BTC-USDC$1.00
0.0000373 Btc
$1,497,774.00
55.682 BTC
0.0000%
56
Kraken
ETH-USDC$1.00
0.0000373 Btc
$1,495,819.00
899.879 ETH
0.0001%
57
PearlFi V1.5
0X40379A439D4F6795B6FC9AA5687DB461677A2DBA-0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174$0.9991
0.0000373 Btc
$1,172,391.00
1,174,361.475 0X40379A439D4F6795B6FC9AA5687DB461677A2DBA
0.1732%
58
C-Patex
USDC-USDT$1.00
0.0000373 Btc
$1,158,293.00
1,157,947.132 USDC
0.1708%
59
Bitstamp
USDC-EUR$0.9996
0.0000374 Btc
$1,135,821.00
1,136,254.706 USDC
0.1676%
60
P2B
USDC-USDT$0.9987
0.0000373 Btc
$1,083,504.00
1,084,871.600 USDC
0.1600%
61
KuCoin
XRP-USDC$1.00
0.0000373 Btc
$1,039,285.00
1,972,500.073 XRP
0.2909%
62
Gemini
USDC-USD$0.9999
0.0000373 Btc
$982,740.00
982,799.017 USDC
0.1450%
63
Uniswap V3 (Ethereum)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.001
0.0000374 Btc
$975,944.00
974,392.171 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.1437%
64
BitMart
BTC-USDC$0.9986
0.0000373 Btc
$878,836.00
32.907 BTC
0.0000%
65
QMall
BTC-USDC$0.9991
0.0000373 Btc
$779,917.00
28.908 BTC
0.0000%
66
Bitget
BTC-USDC$0.9999
0.0000373 Btc
$688,582.00
25.512 BTC
0.0000%
67
Bitget
BGB-USDC$0.9999
0.0000373 Btc
$636,718.00
1,395,696.153 BGB
0.2059%
68
BitMart
USDC-USDT$0.9999
0.0000373 Btc
$630,867.00
630,932.880 USDC
0.0931%
69
Bitget
ETH-USDC$0.9999
0.0000373 Btc
$544,303.00
328.212 ETH
0.0000%
70
BitMart
ETH-USDC$1.00
0.0000373 Btc
$520,792.00
313.456 ETH
0.0000%
71
MEXC
ETH-USDC$0.9986
0.0000373 Btc
$457,388.00
275.394 ETH
0.0000%
72
WhiteBIT
BTC-USDC$0.9991
0.0000373 Btc
$387,140.00
14.462 BTC
0.0000%
73
Bitstamp
BTC-USDC$0.9999
0.0000373 Btc
$372,311.00
13.903 BTC
0.0000%
74
Kanga
BTC-USDC$0.9999
0.0000373 Btc
$370,267.00
0.000 BTC
0.0000%
75
Gate.io
USDC-USDT$1.00
0.0000373 Btc
$358,093.00
358,055.011 USDC
0.0528%
76
Bitkub
USDC-THB$0.996
0.0000372 Btc
$317,495.00
318,770.180 USDC
0.0470%
77
Bitfinex
UDC-USD$1.001
0.0000374 Btc
$242,172.00
241,905.901 UDC
0.0357%
78
WhiteBIT
ETH-USDC$0.9991
0.0000373 Btc
$222,405.00
133.968 ETH
0.0000%
79
BitMart
APE-USDC$0.9986
0.0000373 Btc
$219,616.00
182,627.600 APE
0.0269%
80
BitMart
XLM-USDC$0.9986
0.0000373 Btc
$186,859.00
1,614,016.400 XLM
0.2381%
81
BitMart
FXS-USDC$0.9986
0.0000373 Btc
$149,418.00
24,910.200 FXS
0.0037%
82
CoinEx
USDC-USDT$0.9993
0.0000373 Btc
$125,354.00
125,385.144 USDC
0.0185%
83
Orderly Network
NEAR-USDC$0.9999
0.0000373 Btc
$119,520.00
108,115.000 NEAR
0.0159%
84
BitMart
DOGE-USDC$0.9999
0.0000373 Btc
$119,432.00
1,936,148.000 DOGE
0.2856%
85
BitMart
TRX-USDC$1.00
0.0000373 Btc
$111,482.00
1,256,704.000 TRX
0.1854%
86
BitMart
DAI-USDC$1.00
0.0000373 Btc
$109,720.00
109,738.200 DAI
0.0162%
87
XT.COM
USDC-USDT$0.9985
0.0000373 Btc
$108,078.00
108,217.519 USDC
0.0160%
88
Bitget
XRP-USDC$0.9999
0.0000373 Btc
$99,363.00
190,507.000 XRP
0.0281%
89
Pancakeswap V3 (BSC)
0X55D398326F99059FF775485246999027B3197955-0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D$1.00
0.0000373 Btc
$80,391.00
80,375.442 0X55D398326F99059FF775485246999027B3197955
0.0119%
90
HashKey Exchange
ETH-USDC$0.9991
0.0000373 Btc
$72,820.00
43.814 ETH
0.0000%
91
Bitget
ADA-USDC$0.9999
0.0000373 Btc
$70,787.00
282,897.000 ADA
0.0417%
92
BitMart
MATIC-USDC$1.00
0.0000373 Btc
$64,172.00
123,729.800 MATIC
0.0182%
93
HashKey Exchange
BTC-USDC$0.9991
0.0000373 Btc
$58,265.00
2.155 BTC
0.0000%
94
Bitget
NEAR-USDC$0.9999
0.0000373 Btc
$56,331.00
51,044.700 NEAR
0.0075%
95
Bitget
TRX-USDC$0.9999
0.0000373 Btc
$55,791.00
639,312.700 TRX
0.0943%
96
Bitget
MATIC-USDC$0.9999
0.0000373 Btc
$52,549.00
101,062.400 MATIC
0.0149%
97
Bitget
BNB-USDC$0.9999
0.0000373 Btc
$51,754.00
240.348 BNB
0.0000%
98
Bitget
APE-USDC$0.9999
0.0000373 Btc
$50,721.00
41,711.660 APE
0.0062%
99
Bitget
AAVE-USDC$0.9999
0.0000373 Btc
$45,820.00
695.945 AAVE
0.0001%
100
Bitget
DOGE-USDC$0.9999
0.0000373 Btc
$39,357.00
639,322.079 DOGE
0.0943%
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FiatTokenProxy

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 10000000 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at snowtrace.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

Contract ABI

[{"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"}]

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
Loading