ERC-20
DeFi
Overview
Max Total Supply
1,000,000,000 STG
Holders
38,379 ( 0.016%)
Market
Price
$0.35 @ 0.000088 ETH (-1.80%)
Onchain Market Cap
$350,158,000.00
Circulating Supply Market Cap
$71,521,433.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.01773653513904657 STGValue
$0.01 ( ~2.50539099562723E-06 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|---|---|---|---|---|
1 | Binance | STG-USDT | $0.3502 0.0000881 Eth | $4,820,281.00 13,726,652.300 STG | 14.9408% |
2 | WhiteBIT | STG-USDT | $0.3503 0.0000881 Eth | $4,456,606.00 12,724,012.893 STG | 13.8495% |
3 | Upbit | STG-KRW | $0.3506 0.0000878 Eth | $3,556,699.00 10,145,696.611 STG | 11.0431% |
4 | Bitrue | STG-USDT | $0.3503 0.0000882 Eth | $3,277,237.00 9,356,437.964 STG | 10.1841% |
5 | Nami.Exchange | STG-VNST | $0.3524 0.0000887 Eth | $2,185,449.00 6,201,294.600 STG | 6.7498% |
6 | Nami.Exchange | STG-USDT | $0.3502 0.0000881 Eth | $2,116,921.00 6,044,527.100 STG | 6.5792% |
7 | Hotcoin | STG-USDT | $0.352 0.0000881 Eth | $1,863,592.00 5,294,704.200 STG | 5.7630% |
8 | Ourbit | STG-USDT | $0.3519 0.0000881 Eth | $968,348.00 2,758,546.400 STG | 3.0026% |
9 | LBank | STG-USDT | $0.3513 0.0000880 Eth | $625,961.00 1,781,901.310 STG | 1.9395% |
10 | Trubit | STG-USDT | $0.3504 0.0000881 Eth | $623,926.00 1,773,840.600 STG | 1.9307% |
11 | OrangeX | STG-USDT | $0.3516 0.0000881 Eth | $614,297.00 1,751,160.230 STG | 1.9061% |
12 | Bybit | STG-USDT | $0.3518 0.0000881 Eth | $591,435.00 1,683,510.990 STG | 1.8324% |
13 | XT.COM | STG-USDT | $0.3506 0.0000881 Eth | $581,621.00 1,657,912.400 STG | 1.8046% |
14 | Curve (Ethereum) | 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.3497 0.0000878 Eth | $508,913.00 1,446,038.443 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6 | 1.5739% |
15 | CoinTR | STG-USDT | $0.3522 0.0000882 Eth | $500,334.00 1,423,842.500 STG | 1.5498% |
16 | Toobit | STG-USDT | $0.3519 0.0000881 Eth | $393,122.00 1,118,137.200 STG | 1.2170% |
17 | PancakeSwap V3 (Ethereum) | 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.3498 0.0000876 Eth | $388,410.00 1,105,705.182 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6 | 1.2035% |
18 | Bitunix | STG-USDT | $0.3517 0.0000881 Eth | $373,993.00 1,063,027.200 STG | 1.1571% |
19 | Balancer V2 | 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.3492 0.0000874 Eth | $342,431.00 973,106.876 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6 | 1.0592% |
20 | PancakeSwap V3 (BSC) | 0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B-0X55D398326F99059FF775485246999027B3197955 | $0.3453 0.0000865 Eth | $327,908.00 946,089.807 0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B | 1.0298% |
21 | DigiFinex | STG-USDT | $0.3519 0.0000881 Eth | $311,276.00 884,624.000 STG | 0.9629% |
22 | Bithumb | STG-KRW | $0.3513 0.0000880 Eth | $301,286.00 857,735.313 STG | 0.9336% |
23 | Bitazza | STG-USDT | $0.3527 0.0000883 Eth | $276,108.00 787,348.700 STG | 0.8570% |
24 | MEXC | STG-USDT | $0.3506 0.0000880 Eth | $258,341.00 736,902.970 STG | 0.8021% |
25 | Velodrome Finance V2 (Optimism) | 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97-0X0B2C639C533813F4AA9D7837CAF62653D097FF85 | $0.3496 0.0000875 Eth | $201,783.00 575,825.394 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97 | 0.6268% |
26 | Uniswap V3 (Ethereum) | 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.3508 0.0000879 Eth | $166,040.00 472,459.366 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6 | 0.5143% |
27 | Gate.io | STG-USDT | $0.3518 0.0000881 Eth | $136,904.00 388,655.600 STG | 0.4230% |
28 | CoinCatch | STG-USDT | $0.351 0.0000879 Eth | $119,008.00 339,753.526 STG | 0.3698% |
29 | BitMart | STG-USDT | $0.3516 0.0000880 Eth | $96,582.00 274,712.000 STG | 0.2990% |
30 | BingX | STG-USDT | $0.3515 0.0000880 Eth | $93,789.00 267,078.261 STG | 0.2907% |
31 | Balancer V2 (Arbitrum) | 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | $0.3509 0.0000879 Eth | $93,434.00 266,584.533 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6 | 0.2902% |
32 | LFJ | 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E | $0.3495 0.0000875 Eth | $91,629.00 262,825.982 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | 0.2861% |
33 | Sushiswap (Polygon POS) | 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174 | $0.3514 0.0000880 Eth | $84,452.00 241,059.247 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | 0.2624% |
34 | PointPay | STG-USDT | $0.3517 0.0000881 Eth | $80,546.00 229,435.881 STG | 0.2497% |
35 | Velodrome Finance V2 (Optimism) | 0X0B2C639C533813F4AA9D7837CAF62653D097FF85-0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97 | $0.3495 0.0000875 Eth | $70,671.00 575,825.394 0X0B2C639C533813F4AA9D7837CAF62653D097FF85 | 0.6268% |
36 | Paribu | STG-TRY | $0.3514 0.0000884 Eth | $68,060.00 193,672.200 STG | 0.2108% |
37 | Coinbase Exchange | STG-USD | $0.3495 0.0000875 Eth | $67,484.00 193,086.400 STG | 0.2102% |
38 | Bitkub | STG-THB | $0.3491 0.0000874 Eth | $57,824.00 165,641.426 STG | 0.1803% |
39 | Bitget | STG-USDT | $0.3515 0.0000880 Eth | $52,949.00 151,270.688 STG | 0.1647% |
40 | Curve (Ethereum) | 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0X3175DF0976DFA876431C2E9EE6BC45B65D3473CC | $0.3391 0.0000849 Eth | $52,602.00 150,886.278 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6 | 0.1642% |
41 | Tapbit | STG-USDT | $0.3517 0.0000881 Eth | $47,585.00 135,630.700 STG | 0.1476% |
42 | Binance | STG-BTC | $0.351 0.0000879 Eth | $42,357.00 118,035.000 STG | 0.1285% |
43 | BloFin | STG-USDT | $0.3513 0.0000880 Eth | $36,647.00 104,452.300 STG | 0.1137% |
44 | DeGate | 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.3512 0.0000879 Eth | $30,174.00 87,035.790 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6 | 0.0947% |
45 | BVOX | STG-USDT | $0.351 0.0000880 Eth | $29,997.00 85,444.360 STG | 0.0930% |
46 | Tothemoon | STG-USDT | $0.3518 0.0000881 Eth | $20,492.00 58,248.500 STG | 0.0634% |
47 | HTX | STG-USDT | $0.3472 0.0000869 Eth | $19,364.02 55,225.032 STG | 0.0601% |
48 | KuCoin | STG-USDT | $0.3515 0.0000880 Eth | $17,556.31 49,950.524 STG | 0.0544% |
49 | LATOKEN | STG-USDT | $0.3516 0.0000881 Eth | $14,164.69 40,289.454 STG | 0.0439% |
50 | Phemex | STG-USDT | $0.3504 0.0000879 Eth | $12,883.83 36,767.240 STG | 0.0400% |
51 | Pionex | STG-USDT | $0.35 0.0000882 Eth | $12,364.77 35,224.621 STG | 0.0383% |
52 | Bitvavo | STG-EUR | $0.3451 0.0000868 Eth | $12,304.83 35,657.513 STG | 0.0388% |
53 | Kraken | STG-USD | $0.3491 0.0000874 Eth | $10,504.96 30,091.535 STG | 0.0328% |
54 | Uniswap V3 (Base) | 0XE3B53AF74A4BF62AE5511055290838050BF764DF-0X4200000000000000000000000000000000000006 | $0.3513 0.0000880 Eth | $9,744.69 27,404.023 0XE3B53AF74A4BF62AE5511055290838050BF764DF | 0.0298% |
55 | Uniswap V3 (Arbitrum One) | 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1 | $0.351 0.0000879 Eth | $9,257.26 25,996.720 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6 | 0.0283% |
56 | Coinone | STG-KRW | $0.3418 0.0000856 Eth | $8,355.08 24,444.204 STG | 0.0266% |
57 | CoinEx | STG-USDT | $0.3514 0.0000880 Eth | $7,741.86 22,313.293 STG | 0.0243% |
58 | Crypto.com Exchange | STG-USD | $0.3511 0.0000879 Eth | $5,548.66 15,805.000 STG | 0.0172% |
59 | WEEX | STG-USDT | $0.3521 0.0000882 Eth | $4,869.04 13,892.200 STG | 0.0151% |
60 | Bitlo | STG-TRY | $0.3516 0.0000885 Eth | $4,686.50 13,339.874 STG | 0.0145% |
61 | Uniswap V3 (Polygon) | 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270 | $0.3475 0.0000870 Eth | $4,535.99 12,981.299 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | 0.0141% |
62 | SyncSwap (Linea) | 0X808D7C71AD2BA3FA531B068A2417C63106BC0949-0XE5D7C2A44FFDDF6B295A15C148167DAAAF5CF34F | $0.3441 0.0000862 Eth | $2,934.78 8,472.009 0X808D7C71AD2BA3FA531B068A2417C63106BC0949 | 0.0092% |
63 | Bitfinex | STG-USDT | $0.3485 0.0000873 Eth | $2,579.90 7,402.366 STG | 0.0081% |
64 | Upbit Indonesia | STG-BTC | $0.3512 0.0000880 Eth | $2,502.38 7,124.235 STG | 0.0078% |
65 | Matcha (BSC) | 0X55D398326F99059FF775485246999027B3197955-0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B | $0.3655 0.0000934 Eth | $1,946.64 1,946.738 0X55D398326F99059FF775485246999027B3197955 | 0.0021% |
66 | Velodrome Finance V2 (Optimism) | 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97-0X7F5C764CBC14F9669B88837CA1490CCA17C31607 | $0.35 0.0000876 Eth | $1,587.53 4,507.933 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97 | 0.0049% |
67 | Bitfinex | STG-USD | $0.348 0.0000872 Eth | $1,498.13 4,304.488 STG | 0.0047% |
68 | Bitazza | STG-THB | $0.3484 0.0000873 Eth | $1,494.31 4,252.000 STG | 0.0046% |
69 | Kraken | STG-EUR | $0.3505 0.0000878 Eth | $1,230.45 3,510.723 STG | 0.0038% |
70 | Mudrex | STG-USDT | $0.3518 0.0000881 Eth | $1,223.22 3,476.849 STG | 0.0038% |
71 | TokoCrypto | STG-USDT | $0.3506 0.0000881 Eth | $1,204.83 3,436.830 STG | 0.0037% |
72 | Gate.io | STG-ETH | $0.3486 0.0000873 Eth | $1,114.97 3,106.215 STG | 0.0034% |
73 | SpookySwap | 0X28A92DDE19D9989F39A49905D7C9C2FAC7799BDF-0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | $0.3407 0.0000853 Eth | $1,086.19 1,113.101 0X28A92DDE19D9989F39A49905D7C9C2FAC7799BDF | 0.0012% |
74 | Uniswap V3 (Optimism) | 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97-0X4200000000000000000000000000000000000006 | $0.3453 0.0000865 Eth | $996.58 2,781.279 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97 | 0.0030% |
75 | Aerodrome (Base) | 0XD9AAEC86B65D86F6A7B5B1B0C42FFA531710B6CA-0XE3B53AF74A4BF62AE5511055290838050BF764DF | $0.3419 0.0000858 Eth | $940.88 940.907 0XD9AAEC86B65D86F6A7B5B1B0C42FFA531710B6CA | 0.0010% |
76 | Sushiswap (Arbitrum One) | 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1 | $0.3491 0.0000874 Eth | $607.11 1,710.162 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6 | 0.0019% |
77 | Upbit | STG-BTC | $0.3512 0.0000880 Eth | $536.46 1,527.406 STG | 0.0017% |
78 | Koinpark | STG-INR | $0.3539 0.0000887 Eth | $525.29 1,487.105 STG | 0.0016% |
79 | Binance US | STG-USDT | $0.3593 0.0000900 Eth | $470.23 1,308.660 STG | 0.0014% |
80 | Bittime | STG-IDR | $0.3514 0.0000880 Eth | $303.85 868.000 STG | 0.0009% |
81 | Indodax | STG-IDR | $0.3466 0.0000868 Eth | $301.51 869.956 STG | 0.0009% |
82 | SpookySwap V3 | 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83 | $0.3419 0.0000859 Eth | $284.36 812.384 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | 0.0009% |
83 | Mercado Bitcoin | STG-BRL | $0.3872 0.0000969 Eth | $281.67 727.504 STG | 0.0008% |
84 | Uniswap V3 (Arbitrum One) | 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0XAF88D065E77C8CC2239327C5EDB3A432268E5831 | $0.3477 0.0000875 Eth | $195.79 570.172 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6 | 0.0006% |
85 | Equalizer | 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83 | $0.3421 0.0000861 Eth | $192.34 551.750 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | 0.0006% |
86 | WOO X | STG-USDT | $0.3515 0.0000880 Eth | $145.99 415.300 STG | 0.0005% |
87 | Matcha (Optimism) | 0X0B2C639C533813F4AA9D7837CAF62653D097FF85-0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97 | $0.3607 0.0000913 Eth | $144.45 143.418 0X0B2C639C533813F4AA9D7837CAF62653D097FF85 | 0.0002% |
88 | Korbit | STG-KRW | $0.3446 0.0000863 Eth | $144.14 412.641 STG | 0.0004% |
89 | Matcha (Polygon) | 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0XC2132D05D31C914A87C6611C10748AEB04B58E8F | $0.3684 0.0000952 Eth | $121.54 329.883 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | 0.0004% |
90 | LFJ | 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0XB31F66AA3C1E785363F0875A1B74E27B85FD66C7 | $0.3495 0.0000875 Eth | $80.86 229.336 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | 0.0002% |
91 | SquadSwap V2 | 0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B-0XBB4CDB9CBD36B01BD1CBAEBF2DE08D9173BC095C | $0.3482 0.0000875 Eth | $80.45 225.759 0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B | 0.0002% |
92 | PancakeSwap V3 (BSC) | 0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B-0XBB4CDB9CBD36B01BD1CBAEBF2DE08D9173BC095C | $0.3453 0.0000865 Eth | $79.05 223.234 0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B | 0.0002% |
93 | Uniswap V3 (Polygon) | 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270 | $0.3475 0.0000870 Eth | $49.59 141.404 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | 0.0002% |
94 | Nominex | STG-USDT | $0.3747 0.0000954 Eth | $33.68 89.873 STG | 0.0001% |
95 | Uniswap V3 (Optimism) | 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97-0X7F5C764CBC14F9669B88837CA1490CCA17C31607 | $0.3472 0.0000872 Eth | $32.54 91.433 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97 | 0.0001% |
96 | Poloniex | STG-USDT | $0.3533 0.0000907 Eth | $7.77 22.000 STG | 0.0000% |
97 | Matcha (Polygon) | 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X3C499C542CEF5E3811E1192CE70D8CC03D5C3359 | $0.3797 0.0000969 Eth | $4.47 11.777 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590 | 0.0000% |
98 | HitBTC | STG-USDT | $0.0417 0.0000105 Eth | $2.78 66.670 STG | 0.0001% |
99 | Matcha (Arbitrum One) | 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8 | $0.3436 0.0000867 Eth | $0.736 2.142 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6 | 0.0000% |
100 | Coinmetro | STG-USDT | $0.3512 0.0000879 Eth | $0.00 0.000 STG | 0.0000% |
Contract Name:
StargateToken
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; import "./OmnichainFungibleToken.sol"; contract StargateToken is OmnichainFungibleToken { constructor( string memory _name, string memory _symbol, address _endpoint, uint16 _mainEndpointId, uint256 _initialSupplyOnMainEndpoint ) OmnichainFungibleToken(_name, _symbol, _endpoint, _mainEndpointId, _initialSupplyOnMainEndpoint) {} }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@layerzerolabs/contracts/contracts/interfaces/ILayerZeroEndpoint.sol"; import "@layerzerolabs/contracts/contracts/interfaces/ILayerZeroReceiver.sol"; import "@layerzerolabs/contracts/contracts/interfaces/ILayerZeroUserApplicationConfig.sol"; contract OmnichainFungibleToken is ERC20, Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig { // the only endpointId these tokens will ever be minted on // required: the LayerZero endpoint which is passed in the constructor ILayerZeroEndpoint immutable public endpoint; // a map of our connected contracts mapping(uint16 => bytes) public dstContractLookup; // pause the sendTokens() bool public paused; bool public isMain; event Paused(bool isPaused); event SendToChain(uint16 dstChainId, bytes to, uint256 qty); event ReceiveFromChain(uint16 srcChainId, uint64 nonce, uint256 qty); constructor( string memory _name, string memory _symbol, address _endpoint, uint16 _mainChainId, uint256 initialSupplyOnMainEndpoint ) ERC20(_name, _symbol) { if (ILayerZeroEndpoint(_endpoint).getChainId() == _mainChainId) { _mint(msg.sender, initialSupplyOnMainEndpoint); isMain = true; } // set the LayerZero endpoint endpoint = ILayerZeroEndpoint(_endpoint); } function pauseSendTokens(bool _pause) external onlyOwner { paused = _pause; emit Paused(_pause); } function setDestination(uint16 _dstChainId, bytes calldata _destinationContractAddress) public onlyOwner { dstContractLookup[_dstChainId] = _destinationContractAddress; } function chainId() external view returns (uint16){ return endpoint.getChainId(); } function sendTokens( uint16 _dstChainId, // send tokens to this chainId bytes calldata _to, // where to deliver the tokens on the destination chain uint256 _qty, // how many tokens to send address zroPaymentAddress, // ZRO payment address bytes calldata adapterParam // txParameters ) public payable { require(!paused, "OFT: sendTokens() is currently paused"); // lock if leaving the safe chain, otherwise burn if (isMain) { // ... transferFrom the tokens to this contract for locking purposes _transfer(msg.sender, address(this), _qty); } else { _burn(msg.sender, _qty); } // abi.encode() the payload with the values to send bytes memory payload = abi.encode(_to, _qty); // send LayerZero message endpoint.send{value: msg.value}( _dstChainId, // destination chainId dstContractLookup[_dstChainId], // destination UA address payload, // abi.encode()'ed bytes msg.sender, // refund address (LayerZero will refund any extra gas back to caller of send() zroPaymentAddress, // 'zroPaymentAddress' unused for this mock/example adapterParam // 'adapterParameters' unused for this mock/example ); emit SendToChain(_dstChainId, _to, _qty); } function lzReceive( uint16 _srcChainId, bytes memory _fromAddress, uint64 nonce, bytes memory _payload ) external override { require(msg.sender == address(endpoint)); // boilerplate! lzReceive must be called by the endpoint for security require( _fromAddress.length == dstContractLookup[_srcChainId].length && keccak256(_fromAddress) == keccak256(dstContractLookup[_srcChainId]), "OFT: invalid source sending contract" ); // decode (bytes memory _to, uint256 _qty) = abi.decode(_payload, (bytes, uint256)); address toAddress; // load the toAddress from the bytes assembly { toAddress := mload(add(_to, 20)) } // mint the tokens back into existence, to the receiving address if (isMain) { _transfer(address(this), toAddress, _qty); } else { _mint(toAddress, _qty); } emit ReceiveFromChain(_srcChainId, nonce, _qty); } function estimateSendTokensFee(uint16 _dstChainId, bool _useZro, bytes calldata txParameters) external view returns (uint256 nativeFee, uint256 zroFee) { return endpoint.estimateFees(_dstChainId, address(this), bytes(""), _useZro, txParameters); } //---------------------------DAO CALL---------------------------------------- // generic config for user Application function setConfig( uint16 _version, uint16 _chainId, uint256 _configType, bytes calldata _config ) external override onlyOwner { endpoint.setConfig(_version, _chainId, _configType, _config); } function setSendVersion(uint16 version) external override onlyOwner { endpoint.setSendVersion(version); } function setReceiveVersion(uint16 version) external override onlyOwner { endpoint.setReceiveVersion(version); } function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner { endpoint.forceResumeReceive(_srcChainId, _srcAddress); } function renounceOwnership() public override onlyOwner {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "../../utils/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; import "./ILayerZeroUserApplicationConfig.sol"; interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig { // @notice send a LayerZero message to the specified address at a LayerZero endpoint. // @param _dstChainId - the destination chain identifier // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains // @param _payload - a custom bytes payload to send to the destination contract // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction // @param _adapterParams - parameters for custom functionality. ie: pay for a specified destination gasAmount, or receive airdropped native gas from the relayer on destination function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable; // @notice used by the messaging library to publish verified payload // @param _srcChainId - the source chain identifier // @param _srcAddress - the source contract (as bytes) at the source chain // @param _dstAddress - the address on destination chain // @param _nonce - the unbound message ordering nonce // @param _gasLimit - the gas limit for external contract execution // @param _payload - verified payload to send to the destination contract function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external; // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64); // @notice get the outboundNonce from this source chain which, consequently, is always an EVM // @param _srcAddress - the source chain contract address function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64); // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery // @param _dstChainId - the destination chain identifier // @param _userApplication - the user app address on this EVM chain // @param _payload - the custom message to send over LayerZero // @param _payInZRO - if false, user app pays the protocol fee in native token // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee); // @notice get this Endpoint's immutable source identifier function getChainId() external view returns (uint16); // @notice the interface to retry failed message on this Endpoint destination // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address // @param _payload - the payload to be retried function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external; // @notice query if any STORED payload (message blocking) at the endpoint. // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool); // @notice query if the _libraryAddress is valid for sending msgs. // @param _userApplication - the user app address on this EVM chain function getSendLibraryAddress(address _userApplication) external view returns (address); // @notice query if the _libraryAddress is valid for receiving msgs. // @param _userApplication - the user app address on this EVM chain function getReceiveLibraryAddress(address _userApplication) external view returns (address); // @notice query if the non-reentrancy guard for send() is on // @return true if the guard is on. false otherwise function isSendingPayload() external view returns (bool); // @notice query if the non-reentrancy guard for receive() is on // @return true if the guard is on. false otherwise function isReceivingPayload() external view returns (bool); // @notice get the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _userApplication - the contract address of the user application // @param _configType - type of configuration. every messaging library has its own convention. function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory); // @notice get the send() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getSendVersion(address _userApplication) external view returns (uint16); // @notice get the lzReceive() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getReceiveVersion(address _userApplication) external view returns (uint16); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; interface ILayerZeroReceiver { // @notice LayerZero endpoint will invoke this function to deliver the message on the destination // @param _srcChainId - the source endpoint identifier // @param _srcAddress - the source sending contract address from the source chain // @param _nonce - the ordered message nonce // @param _payload - the signed payload is the UA bytes has encoded to be sent function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external; }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; interface ILayerZeroUserApplicationConfig { // @notice set the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _configType - type of configuration. every messaging library has its own convention. // @param _config - configuration in the bytes. can encode arbitrary content. function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external; // @notice set the send() LayerZero messaging library version to _version // @param _version - new messaging library version function setSendVersion(uint16 _version) external; // @notice set the lzReceive() LayerZero messaging library version to _version // @param _version - new messaging library version function setReceiveVersion(uint16 _version) external; // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload // @param _srcChainId - the chainId of the source chain // @param _srcAddress - the contract address of the source contract at the source chain function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_endpoint","type":"address"},{"internalType":"uint16","name":"_mainEndpointId","type":"uint16"},{"internalType":"uint256","name":"_initialSupplyOnMainEndpoint","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"srcChainId","type":"uint16"},{"indexed":false,"internalType":"uint64","name":"nonce","type":"uint64"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"dstChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"to","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"dstContractLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"txParameters","type":"bytes"}],"name":"estimateSendTokensFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isMain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_fromAddress","type":"bytes"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseSendTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_to","type":"bytes"},{"internalType":"uint256","name":"_qty","type":"uint256"},{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"adapterParam","type":"bytes"}],"name":"sendTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_destinationContractAddress","type":"bytes"}],"name":"setDestination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162002a1238038062002a12833981810160405260a08110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060409081526020828101519183015160609093015187519295509293508691869186918691869186918691620001d691600391908501906200048c565b508051620001ec9060049060208401906200048c565b50506005805460ff191660121790555060006200020862000312565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508161ffff16836001600160a01b0316633408e4706040518163ffffffff1660e01b815260040160206040518083038186803b1580156200029d57600080fd5b505afa158015620002b2573d6000803e3d6000fd5b505050506040513d6020811015620002c957600080fd5b505161ffff161415620002f257620002e2338262000316565b6007805461ff0019166101001790555b505060601b6001600160601b031916608052506200053895505050505050565b3390565b6001600160a01b03821662000372576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620003806000838362000425565b6200039c816002546200042a60201b62001c591790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620003cf91839062001c596200042a821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000485576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620004c457600085556200050f565b82601f10620004df57805160ff19168380011785556200050f565b828001600101855582156200050f579182015b828111156200050f578251825591602001919060010190620004f2565b506200051d92915062000521565b5090565b5b808211156200051d576000815560010162000522565b60805160601c6124946200057e60003980610a755280610dec5280610ef052806110ab52806113f35280611488528061165d528061184052806119a852506124946000f3fe6080604052600436106101b65760003560e01c806360f05c7a116100ec5780639a8a05921161008a578063cbed8b9c11610064578063cbed8b9c1461093a578063dd62ed3e146109d0578063f187892214610a0b578063f2fde38b14610a37576101b6565b80639a8a05921461089c578063a457c2d7146108c8578063a9059cbb14610901576101b6565b8063715018a6116100c6578063715018a6146107b757806373874336146107cc5780638da5cb5b1461087257806395d89b4114610887576101b6565b806360f05c7a146106d0578063706d8fff146106fe57806370a0823114610784576101b6565b80632e15238c1161015957806342d65a8d1161013357806342d65a8d146105ef5780635c975abb146106755780635e280f111461068a578063604269d1146106bb576101b6565b80632e15238c146104ad578063313ce5671461058b57806339509351146105b6576101b6565b8063095ea7b311610195578063095ea7b3146103c857806310ddb1371461041557806318160ddd1461044357806323b872dd1461046a576101b6565b80621d3567146101bb57806306fdde031461031057806307e0db171461039a575b600080fd5b3480156101c757600080fd5b5061030e600480360360808110156101de57600080fd5b61ffff8235169190810190604081016020820135600160201b81111561020357600080fd5b82018360208201111561021557600080fd5b803590602001918460018302840111600160201b8311171561023657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929567ffffffffffffffff853516959094909350604081019250602001359050600160201b81111561029a57600080fd5b8201836020820111156102ac57600080fd5b803590602001918460018302840111600160201b831117156102cd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a6a945050505050565b005b34801561031c57600080fd5b50610325610cf2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035f578181015183820152602001610347565b50505050905090810190601f16801561038c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103a657600080fd5b5061030e600480360360208110156103bd57600080fd5b503561ffff16610d88565b3480156103d457600080fd5b50610401600480360360408110156103eb57600080fd5b506001600160a01b038135169060200135610e6f565b604080519115158252519081900360200190f35b34801561042157600080fd5b5061030e6004803603602081101561043857600080fd5b503561ffff16610e8c565b34801561044f57600080fd5b50610458610f58565b60408051918252519081900360200190f35b34801561047657600080fd5b506104016004803603606081101561048d57600080fd5b506001600160a01b03813581169160208101359091169060400135610f5e565b61030e600480360360a08110156104c357600080fd5b61ffff8235169190810190604081016020820135600160201b8111156104e857600080fd5b8201836020820111156104fa57600080fd5b803590602001918460018302840111600160201b8311171561051b57600080fd5b919390928235926001600160a01b03602082013516929190606081019060400135600160201b81111561054d57600080fd5b82018360208201111561055f57600080fd5b803590602001918460018302840111600160201b8311171561058057600080fd5b509092509050610fe5565b34801561059757600080fd5b506105a0611308565b6040805160ff9092168252519081900360200190f35b3480156105c257600080fd5b50610401600480360360408110156105d957600080fd5b506001600160a01b038135169060200135611311565b3480156105fb57600080fd5b5061030e6004803603604081101561061257600080fd5b61ffff8235169190810190604081016020820135600160201b81111561063757600080fd5b82018360208201111561064957600080fd5b803590602001918460018302840111600160201b8311171561066a57600080fd5b50909250905061135f565b34801561068157600080fd5b5061040161147d565b34801561069657600080fd5b5061069f611486565b604080516001600160a01b039092168252519081900360200190f35b3480156106c757600080fd5b506104016114aa565b3480156106dc57600080fd5b50610325600480360360208110156106f357600080fd5b503561ffff166114b8565b34801561070a57600080fd5b5061030e6004803603604081101561072157600080fd5b61ffff8235169190810190604081016020820135600160201b81111561074657600080fd5b82018360208201111561075857600080fd5b803590602001918460018302840111600160201b8311171561077957600080fd5b509092509050611553565b34801561079057600080fd5b50610458600480360360208110156107a757600080fd5b50356001600160a01b03166115d9565b3480156107c357600080fd5b5061030e6115f4565b3480156107d857600080fd5b50610859600480360360608110156107ef57600080fd5b61ffff823516916020810135151591810190606081016040820135600160201b81111561081b57600080fd5b82018360208201111561082d57600080fd5b803590602001918460018302840111600160201b8311171561084e57600080fd5b509092509050611658565b6040805192835260208301919091528051918290030190f35b34801561087e57600080fd5b5061069f6117c7565b34801561089357600080fd5b506103256117db565b3480156108a857600080fd5b506108b161183c565b6040805161ffff9092168252519081900360200190f35b3480156108d457600080fd5b50610401600480360360408110156108eb57600080fd5b506001600160a01b0381351690602001356118c8565b34801561090d57600080fd5b506104016004803603604081101561092457600080fd5b506001600160a01b038135169060200135611930565b34801561094657600080fd5b5061030e6004803603608081101561095d57600080fd5b61ffff823581169260208101359091169160408201359190810190608081016060820135600160201b81111561099257600080fd5b8201836020820111156109a457600080fd5b803590602001918460018302840111600160201b831117156109c557600080fd5b509092509050611944565b3480156109dc57600080fd5b50610458600480360360408110156109f357600080fd5b506001600160a01b0381358116916020013516611a77565b348015610a1757600080fd5b5061030e60048036036020811015610a2e57600080fd5b50351515611aa2565b348015610a4357600080fd5b5061030e60048036036020811015610a5a57600080fd5b50356001600160a01b0316611b4b565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610a9f57600080fd5b61ffff8416600090815260066020526040902054835160026000196101006001851615020190921691909104148015610b605750600660008561ffff1661ffff1681526020019081526020016000206040518082805460018160011615610100020316600290048015610b495780601f10610b27576101008083540402835291820191610b49565b820191906000526020600020905b815481529060010190602001808311610b35575b505091505060405180910390208380519060200120145b610b9b5760405162461bcd60e51b81526004018080602001828103825260248152602001806122af6024913960400191505060405180910390fd5b600080828060200190516040811015610bb357600080fd5b8101908080516040519392919084600160201b821115610bd257600080fd5b908301906020820185811115610be757600080fd5b8251600160201b811182820188101715610c0057600080fd5b82525081516020918201929091019080838360005b83811015610c2d578181015183820152602001610c15565b50505050905090810190601f168015610c5a5780820380516001836020036101000a031916815260200191505b5060405260200151601484015160075494965090945092610100900460ff16159150610c92905057610c8d308284611cba565b610c9c565b610c9c8183611e15565b6040805161ffff8916815267ffffffffffffffff8716602082015280820184905290517f831bc68226f8d1f734ffcca73602efc4eca13711402ba1d2cc05ee17bb54f6319181900360600190a150505050505050565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d7e5780601f10610d5357610100808354040283529160200191610d7e565b820191906000526020600020905b815481529060010190602001808311610d6157829003601f168201915b5050505050905090565b610d90611f05565b6001600160a01b0316610da16117c7565b6001600160a01b031614610dea576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166307e0db17826040518263ffffffff1660e01b8152600401808261ffff168152602001915050600060405180830381600087803b158015610e5457600080fd5b505af1158015610e68573d6000803e3d6000fd5b5050505050565b6000610e83610e7c611f05565b8484611f09565b50600192915050565b610e94611f05565b6001600160a01b0316610ea56117c7565b6001600160a01b031614610eee576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166310ddb137826040518263ffffffff1660e01b8152600401808261ffff168152602001915050600060405180830381600087803b158015610e5457600080fd5b60025490565b6000610f6b848484611cba565b610fdb84610f77611f05565b610fd685604051806060016040528060288152602001612363602891396001600160a01b038a16600090815260016020526040812090610fb5611f05565b6001600160a01b031681526020810191909152604001600020549190611ff5565b611f09565b5060019392505050565b60075460ff16156110275760405162461bcd60e51b81526004018080602001828103825260258152602001806123cc6025913960400191505060405180910390fd5b600754610100900460ff161561104757611042333086611cba565b611051565b611051338561208c565b600086868660405160200180806020018381526020018281038252858582818152602001925080828437600081840152601f19601f82011690508083019250505094505050505060405160208183030381529060405290507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c5803100348a600660008d61ffff1661ffff16815260200190815260200160002085338a8a8a6040518963ffffffff1660e01b8152600401808861ffff1681526020018060200180602001876001600160a01b03168152602001866001600160a01b031681526020018060200184810384528a8181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156111c25780601f10611197576101008083540402835291602001916111c2565b820191906000526020600020905b8154815290600101906020018083116111a557829003601f168201915b505084810383528951815289516020918201918b019080838360005b838110156111f65781810151838201526020016111de565b50505050905090810190601f1680156112235780820380516001836020036101000a031916815260200191505b508481038252858152602001868680828437600081840152601f19601f8201169050808301925050509a50505050505050505050506000604051808303818588803b15801561127157600080fd5b505af1158015611285573d6000803e3d6000fd5b50505050507f664e26797cde1146ddfcb9a5d3f4de61179f9c11b2698599bb09e686f442172b88888888604051808561ffff168152602001806020018381526020018281038252858582818152602001925080828437600083820152604051601f909101601f191690920182900397509095505050505050a15050505050505050565b60055460ff1690565b6000610e8361131e611f05565b84610fd6856001600061132f611f05565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611c59565b611367611f05565b6001600160a01b03166113786117c7565b6001600160a01b0316146113c1576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b604080516342d65a8d60e01b815261ffff85166004820190815260248201928352604482018490526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926342d65a8d92879287928792606401848480828437600081840152601f19601f820116905080830192505050945050505050600060405180830381600087803b15801561146057600080fd5b505af1158015611474573d6000803e3d6000fd5b50505050505050565b60075460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b600754610100900460ff1681565b60066020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909183018282801561154b5780601f106115205761010080835404028352916020019161154b565b820191906000526020600020905b81548152906001019060200180831161152e57829003601f168201915b505050505081565b61155b611f05565b6001600160a01b031661156c6117c7565b6001600160a01b0316146115b5576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b61ffff831660009081526006602052604090206115d39083836121ea565b50505050565b6001600160a01b031660009081526020819052604090205490565b6115fc611f05565b6001600160a01b031661160d6117c7565b6001600160a01b031614611656576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340a7bb108730604051806020016040528060008152508989896040518763ffffffff1660e01b8152600401808761ffff168152602001866001600160a01b0316815260200180602001851515815260200180602001838103835287818151815260200191508051906020019080838360005b838110156117105781810151838201526020016116f8565b50505050905090810190601f16801561173d5780820380516001836020036101000a031916815260200191505b508381038252848152602001858580828437600081840152601f19601f82011690508083019250505098505050505050505050604080518083038186803b15801561178757600080fd5b505afa15801561179b573d6000803e3d6000fd5b505050506040513d60408110156117b157600080fd5b5080516020909101519097909650945050505050565b60055461010090046001600160a01b031690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d7e5780601f10610d5357610100808354040283529160200191610d7e565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633408e4706040518163ffffffff1660e01b815260040160206040518083038186803b15801561189757600080fd5b505afa1580156118ab573d6000803e3d6000fd5b505050506040513d60208110156118c157600080fd5b5051905090565b6000610e836118d5611f05565b84610fd68560405180606001604052806025815260200161243a60259139600160006118ff611f05565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611ff5565b6000610e8361193d611f05565b8484611cba565b61194c611f05565b6001600160a01b031661195d6117c7565b6001600160a01b0316146119a6576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663cbed8b9c86868686866040518663ffffffff1660e01b8152600401808661ffff1681526020018561ffff168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b158015611a5857600080fd5b505af1158015611a6c573d6000803e3d6000fd5b505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611aaa611f05565b6001600160a01b0316611abb6117c7565b6001600160a01b031614611b04576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b6007805482151560ff19909116811790915560408051918252517f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd29181900360200190a150565b611b53611f05565b6001600160a01b0316611b646117c7565b6001600160a01b031614611bad576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b6001600160a01b038116611bf25760405162461bcd60e51b81526004018080602001828103825260268152602001806122f56026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600082820183811015611cb3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038316611cff5760405162461bcd60e51b81526004018080602001828103825260258152602001806123f16025913960400191505060405180910390fd5b6001600160a01b038216611d445760405162461bcd60e51b815260040180806020018281038252602381526020018061228c6023913960400191505060405180910390fd5b611d4f838383612188565b611d8c8160405180606001604052806026815260200161233d602691396001600160a01b0386166000908152602081905260409020549190611ff5565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611dbb9082611c59565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6001600160a01b038216611e70576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611e7c60008383612188565b600254611e899082611c59565b6002556001600160a01b038216600090815260208190526040902054611eaf9082611c59565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b3390565b6001600160a01b038316611f4e5760405162461bcd60e51b81526004018080602001828103825260248152602001806124166024913960400191505060405180910390fd5b6001600160a01b038216611f935760405162461bcd60e51b815260040180806020018281038252602281526020018061231b6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600081848411156120845760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612049578181015183820152602001612031565b50505050905090810190601f1680156120765780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166120d15760405162461bcd60e51b81526004018080602001828103825260218152602001806123ab6021913960400191505060405180910390fd5b6120dd82600083612188565b61211a816040518060600160405280602281526020016122d3602291396001600160a01b0385166000908152602081905260409020549190611ff5565b6001600160a01b038316600090815260208190526040902055600254612140908261218d565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b505050565b6000828211156121e4576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826122205760008555612266565b82601f106122395782800160ff19823516178555612266565b82800160010185558215612266579182015b8281111561226657823582559160200191906001019061224b565b50612272929150612276565b5090565b5b80821115612272576000815560010161227756fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f46543a20696e76616c696420736f757263652073656e64696e6720636f6e747261637445524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f20616464726573734f46543a2073656e64546f6b656e7328292069732063757272656e746c792070617573656445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220509d27a33b1ccd8dd921bcc7a92729316f3003f949c729e2ab4e10e8351279f364736f6c6343000706003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000033b2e3c9fd0803ce8000000000000000000000000000000000000000000000000000000000000000000000d5374617267617465546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035354470000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101b65760003560e01c806360f05c7a116100ec5780639a8a05921161008a578063cbed8b9c11610064578063cbed8b9c1461093a578063dd62ed3e146109d0578063f187892214610a0b578063f2fde38b14610a37576101b6565b80639a8a05921461089c578063a457c2d7146108c8578063a9059cbb14610901576101b6565b8063715018a6116100c6578063715018a6146107b757806373874336146107cc5780638da5cb5b1461087257806395d89b4114610887576101b6565b806360f05c7a146106d0578063706d8fff146106fe57806370a0823114610784576101b6565b80632e15238c1161015957806342d65a8d1161013357806342d65a8d146105ef5780635c975abb146106755780635e280f111461068a578063604269d1146106bb576101b6565b80632e15238c146104ad578063313ce5671461058b57806339509351146105b6576101b6565b8063095ea7b311610195578063095ea7b3146103c857806310ddb1371461041557806318160ddd1461044357806323b872dd1461046a576101b6565b80621d3567146101bb57806306fdde031461031057806307e0db171461039a575b600080fd5b3480156101c757600080fd5b5061030e600480360360808110156101de57600080fd5b61ffff8235169190810190604081016020820135600160201b81111561020357600080fd5b82018360208201111561021557600080fd5b803590602001918460018302840111600160201b8311171561023657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929567ffffffffffffffff853516959094909350604081019250602001359050600160201b81111561029a57600080fd5b8201836020820111156102ac57600080fd5b803590602001918460018302840111600160201b831117156102cd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a6a945050505050565b005b34801561031c57600080fd5b50610325610cf2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035f578181015183820152602001610347565b50505050905090810190601f16801561038c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103a657600080fd5b5061030e600480360360208110156103bd57600080fd5b503561ffff16610d88565b3480156103d457600080fd5b50610401600480360360408110156103eb57600080fd5b506001600160a01b038135169060200135610e6f565b604080519115158252519081900360200190f35b34801561042157600080fd5b5061030e6004803603602081101561043857600080fd5b503561ffff16610e8c565b34801561044f57600080fd5b50610458610f58565b60408051918252519081900360200190f35b34801561047657600080fd5b506104016004803603606081101561048d57600080fd5b506001600160a01b03813581169160208101359091169060400135610f5e565b61030e600480360360a08110156104c357600080fd5b61ffff8235169190810190604081016020820135600160201b8111156104e857600080fd5b8201836020820111156104fa57600080fd5b803590602001918460018302840111600160201b8311171561051b57600080fd5b919390928235926001600160a01b03602082013516929190606081019060400135600160201b81111561054d57600080fd5b82018360208201111561055f57600080fd5b803590602001918460018302840111600160201b8311171561058057600080fd5b509092509050610fe5565b34801561059757600080fd5b506105a0611308565b6040805160ff9092168252519081900360200190f35b3480156105c257600080fd5b50610401600480360360408110156105d957600080fd5b506001600160a01b038135169060200135611311565b3480156105fb57600080fd5b5061030e6004803603604081101561061257600080fd5b61ffff8235169190810190604081016020820135600160201b81111561063757600080fd5b82018360208201111561064957600080fd5b803590602001918460018302840111600160201b8311171561066a57600080fd5b50909250905061135f565b34801561068157600080fd5b5061040161147d565b34801561069657600080fd5b5061069f611486565b604080516001600160a01b039092168252519081900360200190f35b3480156106c757600080fd5b506104016114aa565b3480156106dc57600080fd5b50610325600480360360208110156106f357600080fd5b503561ffff166114b8565b34801561070a57600080fd5b5061030e6004803603604081101561072157600080fd5b61ffff8235169190810190604081016020820135600160201b81111561074657600080fd5b82018360208201111561075857600080fd5b803590602001918460018302840111600160201b8311171561077957600080fd5b509092509050611553565b34801561079057600080fd5b50610458600480360360208110156107a757600080fd5b50356001600160a01b03166115d9565b3480156107c357600080fd5b5061030e6115f4565b3480156107d857600080fd5b50610859600480360360608110156107ef57600080fd5b61ffff823516916020810135151591810190606081016040820135600160201b81111561081b57600080fd5b82018360208201111561082d57600080fd5b803590602001918460018302840111600160201b8311171561084e57600080fd5b509092509050611658565b6040805192835260208301919091528051918290030190f35b34801561087e57600080fd5b5061069f6117c7565b34801561089357600080fd5b506103256117db565b3480156108a857600080fd5b506108b161183c565b6040805161ffff9092168252519081900360200190f35b3480156108d457600080fd5b50610401600480360360408110156108eb57600080fd5b506001600160a01b0381351690602001356118c8565b34801561090d57600080fd5b506104016004803603604081101561092457600080fd5b506001600160a01b038135169060200135611930565b34801561094657600080fd5b5061030e6004803603608081101561095d57600080fd5b61ffff823581169260208101359091169160408201359190810190608081016060820135600160201b81111561099257600080fd5b8201836020820111156109a457600080fd5b803590602001918460018302840111600160201b831117156109c557600080fd5b509092509050611944565b3480156109dc57600080fd5b50610458600480360360408110156109f357600080fd5b506001600160a01b0381358116916020013516611a77565b348015610a1757600080fd5b5061030e60048036036020811015610a2e57600080fd5b50351515611aa2565b348015610a4357600080fd5b5061030e60048036036020811015610a5a57600080fd5b50356001600160a01b0316611b4b565b336001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6751614610a9f57600080fd5b61ffff8416600090815260066020526040902054835160026000196101006001851615020190921691909104148015610b605750600660008561ffff1661ffff1681526020019081526020016000206040518082805460018160011615610100020316600290048015610b495780601f10610b27576101008083540402835291820191610b49565b820191906000526020600020905b815481529060010190602001808311610b35575b505091505060405180910390208380519060200120145b610b9b5760405162461bcd60e51b81526004018080602001828103825260248152602001806122af6024913960400191505060405180910390fd5b600080828060200190516040811015610bb357600080fd5b8101908080516040519392919084600160201b821115610bd257600080fd5b908301906020820185811115610be757600080fd5b8251600160201b811182820188101715610c0057600080fd5b82525081516020918201929091019080838360005b83811015610c2d578181015183820152602001610c15565b50505050905090810190601f168015610c5a5780820380516001836020036101000a031916815260200191505b5060405260200151601484015160075494965090945092610100900460ff16159150610c92905057610c8d308284611cba565b610c9c565b610c9c8183611e15565b6040805161ffff8916815267ffffffffffffffff8716602082015280820184905290517f831bc68226f8d1f734ffcca73602efc4eca13711402ba1d2cc05ee17bb54f6319181900360600190a150505050505050565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d7e5780601f10610d5357610100808354040283529160200191610d7e565b820191906000526020600020905b815481529060010190602001808311610d6157829003601f168201915b5050505050905090565b610d90611f05565b6001600160a01b0316610da16117c7565b6001600160a01b031614610dea576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03166307e0db17826040518263ffffffff1660e01b8152600401808261ffff168152602001915050600060405180830381600087803b158015610e5457600080fd5b505af1158015610e68573d6000803e3d6000fd5b5050505050565b6000610e83610e7c611f05565b8484611f09565b50600192915050565b610e94611f05565b6001600160a01b0316610ea56117c7565b6001600160a01b031614610eee576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03166310ddb137826040518263ffffffff1660e01b8152600401808261ffff168152602001915050600060405180830381600087803b158015610e5457600080fd5b60025490565b6000610f6b848484611cba565b610fdb84610f77611f05565b610fd685604051806060016040528060288152602001612363602891396001600160a01b038a16600090815260016020526040812090610fb5611f05565b6001600160a01b031681526020810191909152604001600020549190611ff5565b611f09565b5060019392505050565b60075460ff16156110275760405162461bcd60e51b81526004018080602001828103825260258152602001806123cc6025913960400191505060405180910390fd5b600754610100900460ff161561104757611042333086611cba565b611051565b611051338561208c565b600086868660405160200180806020018381526020018281038252858582818152602001925080828437600081840152601f19601f82011690508083019250505094505050505060405160208183030381529060405290507f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031663c5803100348a600660008d61ffff1661ffff16815260200190815260200160002085338a8a8a6040518963ffffffff1660e01b8152600401808861ffff1681526020018060200180602001876001600160a01b03168152602001866001600160a01b031681526020018060200184810384528a8181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156111c25780601f10611197576101008083540402835291602001916111c2565b820191906000526020600020905b8154815290600101906020018083116111a557829003601f168201915b505084810383528951815289516020918201918b019080838360005b838110156111f65781810151838201526020016111de565b50505050905090810190601f1680156112235780820380516001836020036101000a031916815260200191505b508481038252858152602001868680828437600081840152601f19601f8201169050808301925050509a50505050505050505050506000604051808303818588803b15801561127157600080fd5b505af1158015611285573d6000803e3d6000fd5b50505050507f664e26797cde1146ddfcb9a5d3f4de61179f9c11b2698599bb09e686f442172b88888888604051808561ffff168152602001806020018381526020018281038252858582818152602001925080828437600083820152604051601f909101601f191690920182900397509095505050505050a15050505050505050565b60055460ff1690565b6000610e8361131e611f05565b84610fd6856001600061132f611f05565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611c59565b611367611f05565b6001600160a01b03166113786117c7565b6001600160a01b0316146113c1576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b604080516342d65a8d60e01b815261ffff85166004820190815260248201928352604482018490526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516926342d65a8d92879287928792606401848480828437600081840152601f19601f820116905080830192505050945050505050600060405180830381600087803b15801561146057600080fd5b505af1158015611474573d6000803e3d6000fd5b50505050505050565b60075460ff1681565b7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67581565b600754610100900460ff1681565b60066020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909183018282801561154b5780601f106115205761010080835404028352916020019161154b565b820191906000526020600020905b81548152906001019060200180831161152e57829003601f168201915b505050505081565b61155b611f05565b6001600160a01b031661156c6117c7565b6001600160a01b0316146115b5576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b61ffff831660009081526006602052604090206115d39083836121ea565b50505050565b6001600160a01b031660009081526020819052604090205490565b6115fc611f05565b6001600160a01b031661160d6117c7565b6001600160a01b031614611656576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b565b6000807f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03166340a7bb108730604051806020016040528060008152508989896040518763ffffffff1660e01b8152600401808761ffff168152602001866001600160a01b0316815260200180602001851515815260200180602001838103835287818151815260200191508051906020019080838360005b838110156117105781810151838201526020016116f8565b50505050905090810190601f16801561173d5780820380516001836020036101000a031916815260200191505b508381038252848152602001858580828437600081840152601f19601f82011690508083019250505098505050505050505050604080518083038186803b15801561178757600080fd5b505afa15801561179b573d6000803e3d6000fd5b505050506040513d60408110156117b157600080fd5b5080516020909101519097909650945050505050565b60055461010090046001600160a01b031690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d7e5780601f10610d5357610100808354040283529160200191610d7e565b60007f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316633408e4706040518163ffffffff1660e01b815260040160206040518083038186803b15801561189757600080fd5b505afa1580156118ab573d6000803e3d6000fd5b505050506040513d60208110156118c157600080fd5b5051905090565b6000610e836118d5611f05565b84610fd68560405180606001604052806025815260200161243a60259139600160006118ff611f05565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611ff5565b6000610e8361193d611f05565b8484611cba565b61194c611f05565b6001600160a01b031661195d6117c7565b6001600160a01b0316146119a6576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031663cbed8b9c86868686866040518663ffffffff1660e01b8152600401808661ffff1681526020018561ffff168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b158015611a5857600080fd5b505af1158015611a6c573d6000803e3d6000fd5b505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611aaa611f05565b6001600160a01b0316611abb6117c7565b6001600160a01b031614611b04576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b6007805482151560ff19909116811790915560408051918252517f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd29181900360200190a150565b611b53611f05565b6001600160a01b0316611b646117c7565b6001600160a01b031614611bad576040805162461bcd60e51b8152602060048201819052602482015260008051602061238b833981519152604482015290519081900360640190fd5b6001600160a01b038116611bf25760405162461bcd60e51b81526004018080602001828103825260268152602001806122f56026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600082820183811015611cb3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038316611cff5760405162461bcd60e51b81526004018080602001828103825260258152602001806123f16025913960400191505060405180910390fd5b6001600160a01b038216611d445760405162461bcd60e51b815260040180806020018281038252602381526020018061228c6023913960400191505060405180910390fd5b611d4f838383612188565b611d8c8160405180606001604052806026815260200161233d602691396001600160a01b0386166000908152602081905260409020549190611ff5565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611dbb9082611c59565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6001600160a01b038216611e70576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611e7c60008383612188565b600254611e899082611c59565b6002556001600160a01b038216600090815260208190526040902054611eaf9082611c59565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b3390565b6001600160a01b038316611f4e5760405162461bcd60e51b81526004018080602001828103825260248152602001806124166024913960400191505060405180910390fd5b6001600160a01b038216611f935760405162461bcd60e51b815260040180806020018281038252602281526020018061231b6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600081848411156120845760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612049578181015183820152602001612031565b50505050905090810190601f1680156120765780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166120d15760405162461bcd60e51b81526004018080602001828103825260218152602001806123ab6021913960400191505060405180910390fd5b6120dd82600083612188565b61211a816040518060600160405280602281526020016122d3602291396001600160a01b0385166000908152602081905260409020549190611ff5565b6001600160a01b038316600090815260208190526040902055600254612140908261218d565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b505050565b6000828211156121e4576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826122205760008555612266565b82601f106122395782800160ff19823516178555612266565b82800160010185558215612266579182015b8281111561226657823582559160200191906001019061224b565b50612272929150612276565b5090565b5b80821115612272576000815560010161227756fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f46543a20696e76616c696420736f757263652073656e64696e6720636f6e747261637445524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f20616464726573734f46543a2073656e64546f6b656e7328292069732063757272656e746c792070617573656445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220509d27a33b1ccd8dd921bcc7a92729316f3003f949c729e2ab4e10e8351279f364736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000033b2e3c9fd0803ce8000000000000000000000000000000000000000000000000000000000000000000000d5374617267617465546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035354470000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): StargateToken
Arg [1] : _symbol (string): STG
Arg [2] : _endpoint (address): 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675
Arg [3] : _mainEndpointId (uint16): 1
Arg [4] : _initialSupplyOnMainEndpoint (uint256): 1000000000000000000000000000
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [6] : 5374617267617465546f6b656e00000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 5354470000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.