ETH Price: $3,464.97 (-0.77%)

Token

StargateToken (STG)
 

Overview

Max Total Supply

1,000,000,000 STG

Holders

38,470 ( 0.112%)

Market

Price

$0.42 @ 0.000122 ETH (+28.70%)

Onchain Market Cap

$421,141,000.00

Circulating Supply Market Cap

$86,091,208.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
1 STG

Value
$0.42 ( ~0.00012121304635923 Eth) [0.0000%]
0xd2e0504ada1ce43fe8c1006ca2df053f7bcfaa2d
Loading...
Loading
Loading...
Loading
Loading...
Loading

Market

Volume (24H):$231,839,019.00
Market Capitalization:$86,091,208.00
Circulating Supply:204,348,516.00 STG
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume
1
Upbit
STG-KRW$0.4292
0.0001238 Eth
$182,093,599.00
424,278,272.651 STG
53.8094%
2
Binance
STG-USDT$0.4221
0.0001215 Eth
$60,446,541.00
152,403,926.000 STG
19.3287%
3
Bitrue
STG-USDT$0.4175
0.0001202 Eth
$41,621,702.00
99,684,792.031 STG
12.6426%
4
WhiteBIT
STG-USDT$0.4168
0.0001202 Eth
$15,650,977.00
37,549,955.907 STG
4.7623%
5
Bithumb
STG-KRW$0.4285
0.0001235 Eth
$13,455,670.00
31,401,968.111 STG
3.9826%
6
Ourbit
STG-USDT$0.4167
0.0001200 Eth
$11,532,577.00
29,110,292.250 STG
3.6919%
7
OrangeX
STG-USDT$0.4215
0.0001214 Eth
$9,091,481.00
22,881,013.340 STG
2.9019%
8
Gate.io
STG-USDT$0.4177
0.0001203 Eth
$8,788,423.00
21,810,357.680 STG
2.7661%
9
Bybit
STG-USDT$0.416
0.0001200 Eth
$7,493,794.00
19,695,759.910 STG
2.4979%
10
PancakeSwap V3 (Ethereum)
0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$0.418
0.0001204 Eth
$6,880,037.00
17,348,270.224 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6
2.2002%
11
Paribu
STG-TRY$0.4202
0.0001210 Eth
$6,830,766.00
16,254,390.000 STG
2.0615%
12
Toobit
STG-USDT$0.4201
0.0001210 Eth
$4,853,942.00
12,239,991.600 STG
1.5523%
13
Curve (Ethereum)
0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$0.423
0.0001218 Eth
$4,427,675.00
11,319,030.483 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6
1.4355%
14
PancakeSwap V3 (BSC)
0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B-0X55D398326F99059FF775485246999027B3197955$0.4212
0.0001214 Eth
$4,344,774.00
10,785,191.622 0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B
1.3678%
15
Bitunix
STG-USDT$0.4162
0.0001199 Eth
$4,310,688.00
10,354,451.400 STG
1.3132%
16
DigiFinex
STG-USDT$0.4166
0.0001201 Eth
$4,137,330.00
9,931,073.700 STG
1.2595%
17
Balancer V2
0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$0.4191
0.0001208 Eth
$3,100,694.00
7,941,076.454 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6
1.0071%
18
Velodrome Finance V2 (Optimism)
0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97-0X0B2C639C533813F4AA9D7837CAF62653D097FF85$0.4199
0.0001209 Eth
$2,024,909.00
5,232,412.133 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97
0.6636%
19
Uniswap V3 (Ethereum)
0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$0.4237
0.0001220 Eth
$1,728,080.00
4,314,206.932 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6
0.5472%
20
XT.COM
STG-USDT$0.4222
0.0001216 Eth
$1,553,124.00
4,124,730.400 STG
0.5231%
21
Bitget
STG-USDT$0.4162
0.0001200 Eth
$1,407,886.00
3,480,095.458 STG
0.4414%
22
LFJ
0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$0.4189
0.0001206 Eth
$1,383,353.00
3,470,762.621 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590
0.4402%
23
Bitvavo
STG-EUR$0.4177
0.0001203 Eth
$1,331,917.00
3,188,395.039 STG
0.4044%
24
Coinbase Exchange
STG-USD$0.4128
0.0001190 Eth
$1,222,093.00
2,960,496.800 STG
0.3755%
25
Uniswap V3 (Arbitrum One)
0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1$0.4163
0.0001200 Eth
$1,184,994.00
3,019,206.134 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6
0.3829%
26
PointPay
STG-USDT$0.4161
0.0001199 Eth
$1,018,052.00
2,562,728.244 STG
0.3250%
27
LBank
STG-USDT$0.4193
0.0001207 Eth
$1,005,689.00
2,398,281.380 STG
0.3042%
28
Sushiswap (Polygon POS)
0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174$0.4221
0.0001216 Eth
$962,193.00
2,409,266.599 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590
0.3056%
29
BingX
STG-USDT$0.4169
0.0001201 Eth
$851,780.00
2,164,421.320 STG
0.2745%
30
Velodrome Finance V2 (Optimism)
0X0B2C639C533813F4AA9D7837CAF62653D097FF85-0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97$0.4197
0.0001208 Eth
$850,711.00
5,232,412.133 0X0B2C639C533813F4AA9D7837CAF62653D097FF85
0.6636%
31
Hotcoin
STG-USDT$0.4191
0.0001207 Eth
$849,138.00
2,026,057.400 STG
0.2570%
32
Balancer V2 (Arbitrum)
0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$0.4187
0.0001206 Eth
$822,768.00
2,106,594.046 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6
0.2672%
33
Curve (Ethereum)
0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0X3175DF0976DFA876431C2E9EE6BC45B65D3473CC$0.4124
0.0001188 Eth
$625,971.00
1,595,648.524 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6
0.2024%
34
Binance
STG-BTC$0.4153
0.0001198 Eth
$608,423.00
1,477,126.100 STG
0.1873%
35
Bitkub
STG-THB$0.4148
0.0001196 Eth
$585,282.00
1,410,942.525 STG
0.1789%
36
KuCoin
STG-USDT$0.4183
0.0001206 Eth
$565,475.00
1,351,968.279 STG
0.1715%
37
Trubit
STG-USDT$0.4171
0.0001201 Eth
$541,846.00
1,474,880.500 STG
0.1871%
38
MEXC
STG-USDT$0.4164
0.0001200 Eth
$530,944.00
1,275,193.270 STG
0.1617%
39
CoinTR
STG-USDT$0.423
0.0001218 Eth
$367,434.00
1,015,416.400 STG
0.1288%
40
Bitazza
STG-USDT$0.4197
0.0001209 Eth
$349,943.00
959,713.200 STG
0.1217%
41
BitMart
STG-USDT$0.4165
0.0001199 Eth
$339,938.00
816,156.000 STG
0.1035%
42
Matcha (Ethereum)
0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6$0.4212
0.0001213 Eth
$322,200.00
327,948.119 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48
0.0416%
43
Crypto.com Exchange
STG-USD$0.4162
0.0001200 Eth
$293,076.00
704,120.000 STG
0.0893%
44
Uniswap V3 (Polygon)
0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270$0.4206
0.0001213 Eth
$218,915.00
582,028.311 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590
0.0738%
45
Pionex
STG-USDT$0.417
0.0001201 Eth
$200,691.00
509,111.568 STG
0.0646%
46
WEEX
STG-USDT$0.4163
0.0001199 Eth
$137,196.00
335,841.500 STG
0.0426%
47
DeGate
0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$0.4217
0.0001214 Eth
$134,885.00
355,191.370 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6
0.0450%
48
Kraken
STG-USD$0.4173
0.0001203 Eth
$131,619.00
315,405.074 STG
0.0400%
49
CoinCatch
STG-USDT$0.4178
0.0001203 Eth
$122,796.00
337,967.754 STG
0.0429%
50
Coinone
STG-KRW$0.4326
0.0001246 Eth
$107,593.00
248,703.140 STG
0.0315%
51
BVOX
STG-USDT$0.4173
0.0001202 Eth
$94,960.00
250,929.860 STG
0.0318%
52
Bitfinex
STG-USDT$0.4214
0.0001215 Eth
$92,691.00
219,952.583 STG
0.0279%
53
Bitfinex
STG-USD$0.4221
0.0001217 Eth
$87,751.00
207,911.421 STG
0.0264%
54
TokoCrypto
STG-USDT$0.4169
0.0001202 Eth
$85,696.00
205,552.539 STG
0.0261%
55
Bitazza
STG-THB$0.4213
0.0001213 Eth
$68,082.00
179,434.400 STG
0.0228%
56
Tapbit
STG-USDT$0.4175
0.0001202 Eth
$58,671.00
157,131.700 STG
0.0199%
57
BloFin
STG-USDT$0.4201
0.0001210 Eth
$55,915.00
150,389.200 STG
0.0191%
58
WOO X
STG-USDT$0.4168
0.0001200 Eth
$55,252.00
132,555.900 STG
0.0168%
59
Uniswap V3 (Base)
0XE3B53AF74A4BF62AE5511055290838050BF764DF-0X4200000000000000000000000000000000000006$0.4062
0.0001170 Eth
$42,109.00
111,327.747 0XE3B53AF74A4BF62AE5511055290838050BF764DF
0.0141%
60
CoinEx
STG-USDT$0.4151
0.0001195 Eth
$37,361.00
92,631.601 STG
0.0117%
61
Bitlo
STG-TRY$0.4187
0.0001206 Eth
$30,442.00
73,346.413 STG
0.0093%
62
Uniswap V3 (Optimism)
0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97-0X4200000000000000000000000000000000000006$0.4199
0.0001210 Eth
$30,076.00
81,225.975 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97
0.0103%
63
Nami.Exchange
STG-USDT$0.4219
0.0001215 Eth
$28,699.00
68,022.233 STG
0.0086%
64
Bittime
STG-IDR$0.4216
0.0001214 Eth
$28,646.00
70,897.300 STG
0.0090%
65
Nami.Exchange
STG-VNST$0.4164
0.0001200 Eth
$28,453.00
68,336.012 STG
0.0087%
66
HTX
STG-USDT$0.4202
0.0001211 Eth
$28,222.00
69,982.854 STG
0.0089%
67
Kraken
STG-EUR$0.4175
0.0001204 Eth
$27,762.00
66,489.656 STG
0.0084%
68
Upbit Indonesia
STG-BTC$0.4149
0.0001195 Eth
$25,584.00
61,669.857 STG
0.0078%
69
Upbit
STG-BTC$0.4144
0.0001195 Eth
$25,295.00
61,045.105 STG
0.0077%
70
Tothemoon
STG-USDT$0.4165
0.0001199 Eth
$23,824.00
57,198.600 STG
0.0073%
71
Phemex
STG-USDT$0.4209
0.0001212 Eth
$18,921.71
44,952.580 STG
0.0057%
72
Mudrex
STG-USDT$0.4164
0.0001200 Eth
$18,292.15
43,933.110 STG
0.0056%
73
Uniswap V3 (Polygon)
0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270$0.422
0.0001215 Eth
$17,779.80
44,492.466 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590
0.0056%
74
Binance US
STG-USDT$0.4417
0.0001272 Eth
$12,822.94
29,029.909 STG
0.0037%
75
Velodrome Finance V2 (Optimism)
0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97-0X7F5C764CBC14F9669B88837CA1490CCA17C31607$0.4197
0.0001208 Eth
$12,412.09
31,821.065 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97
0.0040%
76
Sushiswap (Arbitrum One)
0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1$0.4194
0.0001209 Eth
$11,593.15
28,953.183 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6
0.0037%
77
LATOKEN
STG-USDT$0.4169
0.0001202 Eth
$8,510.78
20,414.431 STG
0.0026%
78
Korbit
STG-KRW$0.3805
0.0001096 Eth
$8,014.55
18,564.364 STG
0.0024%
79
SyncSwap (Linea)
0X808D7C71AD2BA3FA531B068A2417C63106BC0949-0XE5D7C2A44FFDDF6B295A15C148167DAAAF5CF34F$0.4206
0.0001213 Eth
$6,656.25
16,825.002 0X808D7C71AD2BA3FA531B068A2417C63106BC0949
0.0021%
80
Indodax
STG-IDR$0.4328
0.0001246 Eth
$4,846.52
11,199.302 STG
0.0014%
81
SpookySwap
0X28A92DDE19D9989F39A49905D7C9C2FAC7799BDF-0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590$0.4114
0.0001185 Eth
$3,274.51
2,979.778 0X28A92DDE19D9989F39A49905D7C9C2FAC7799BDF
0.0004%
82
Aerodrome (Base)
0XD9AAEC86B65D86F6A7B5B1B0C42FFA531710B6CA-0XE3B53AF74A4BF62AE5511055290838050BF764DF$0.4176
0.0001202 Eth
$3,231.61
2,814.681 0XD9AAEC86B65D86F6A7B5B1B0C42FFA531710B6CA
0.0004%
83
Matcha (Avalanche)
0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$0.3767
0.0001085 Eth
$1,961.14
5,206.237 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590
0.0007%
84
Matcha (Arbitrum One)
0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0XFD086BC7CD5C481DCC9C85EBE478A1C0B69FCBB9$0.4069
0.0001171 Eth
$1,622.18
4,138.767 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6
0.0005%
85
PancakeSwap V3 (BSC)
0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B-0XBB4CDB9CBD36B01BD1CBAEBF2DE08D9173BC095C$0.4208
0.0001211 Eth
$1,441.41
3,634.240 0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B
0.0005%
86
Mercado Bitcoin
STG-BRL$0.388
0.0001119 Eth
$1,430.74
3,687.790 STG
0.0005%
87
LFJ
0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0XB31F66AA3C1E785363F0875A1B74E27B85FD66C7$0.4231
0.0001218 Eth
$1,284.47
3,241.280 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590
0.0004%
88
SquadSwap V2
0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B-0XBB4CDB9CBD36B01BD1CBAEBF2DE08D9173BC095C$0.417
0.0001201 Eth
$1,283.93
3,286.164 0XB0D502E938ED5F4DF2E681FE6E419FF29631D62B
0.0004%
89
Gate.io
STG-ETH$0.4169
0.0001201 Eth
$1,260.67
3,529.988 STG
0.0004%
90
LFJ V2.1 (Arbitrum)
0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0XAF88D065E77C8CC2239327C5EDB3A432268E5831$0.422
0.0001215 Eth
$628.62
1,690.184 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6
0.0002%
91
Uniswap V3 (Arbitrum One)
0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0XAF88D065E77C8CC2239327C5EDB3A432268E5831$0.4186
0.0001205 Eth
$611.65
1,810.523 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6
0.0002%
92
Koinpark
STG-INR$0.4155
0.0001197 Eth
$536.94
1,471.920 STG
0.0002%
93
SpookySwap V3
0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83$0.4446
0.0001280 Eth
$456.76
1,175.532 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590
0.0001%
94
Uniswap V3 (Ethereum)
0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.4237
0.0001220 Eth
$445.96
1,040.506 0XAF5191B0DE278C7286D6C7CC6AB6BB8A73BA2CD6
0.0001%
95
Equalizer
0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83$0.4392
0.0001264 Eth
$354.04
931.310 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590
0.0001%
96
Matcha (Polygon)
0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$0.4495
0.0001294 Eth
$89.95
199.506 0X2F6F07CDCF3588944BF4C42AC74FF24BF56E7590
0.0000%
97
Uniswap V3 (Optimism)
0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97-0X4200000000000000000000000000000000000006$0.3282
0.0000941 Eth
$69.37
214.819 0X296F55F8FB28E498B858D0BCDA06D955B2CB3F97
0.0000%
98
Poloniex
STG-USDT$0.3848
0.0001110 Eth
$33.57
88.865 STG
0.0000%
99
Matcha (Arbitrum One)
0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6-0XAF88D065E77C8CC2239327C5EDB3A432268E5831$0.3651
0.0001053 Eth
$8.49
23.239 0X6694340FC020C5E6B96567843DA2DF01B2CE1EB6
0.0000%
100
Coinmetro
STG-USDT$0.4211
0.0001214 Eth
$0.00
0.000 STG
0.0000%

Contract Source Code Verified (Exact Match)

Contract Name:
StargateToken

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : StargateToken.sol
// 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) {}
}

File 2 of 10 : OmnichainFungibleToken.sol
// 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 {}
}

File 3 of 10 : ERC20.sol
// 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 { }
}

File 4 of 10 : Ownable.sol
// 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;
    }
}

File 5 of 10 : ILayerZeroEndpoint.sol
// 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);
}

File 6 of 10 : ILayerZeroReceiver.sol
// 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;
}

File 7 of 10 : ILayerZeroUserApplicationConfig.sol
// 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;
}

File 8 of 10 : Context.sol
// 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;
    }
}

File 9 of 10 : IERC20.sol
// 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);
}

File 10 of 10 : SafeMath.sol
// 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

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

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.