Token Binance USD
This token was updated based on the Boba Network's github documentation.
Overview [ERC-20]
Price
$1.00 @ 0.000554 Eth (-0.33%)
Fully Diluted Market Cap
Max Total Supply:
500.03820519465893 BUSD
Holders:
1 (0.00%)
Transfers:
-
Contract:
Decimals:
18
Official Site:
[ Download CSV Export ]
[ Download CSV Export ]
Market
Volume (24H) | : | $3,280,155,806.00 |
Market Capitalization | : | $8,025,496,097.00 |
Circulating Supply | : | 8,024,348,824.00 BUSD |
Market Data Source: Coinmarketcap |
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|---|---|---|---|---|
1 | ![]() | BTC-BUSD | $1.0010 0.0005556 Eth | $768,565,456.0000 26,884.692 BTC | 0.0000% |
2 | ![]() | ETH-BUSD | $1.0010 0.0005556 Eth | $434,972,463.0000 241,343.507 ETH | 0.0000% |
3 | ![]() | BUSD-USDT | $1.0010 0.0005553 Eth | $395,964,356.0000 395,501,886.690 BUSD | 0.0159% |
4 | ![]() | ETH-BUSD | $0.9997 0.0005544 Eth | $257,439,650.0000 142,949.702 ETH | 0.0000% |
5 | ![]() | XRP-BUSD | $1.0000 0.0005541 Eth | $147,431,939.0000 271,379,514.148 XRP | 0.0109% |
6 | ![]() | BTC-BUSD | $1.0000 0.0005545 Eth | $67,266,985.0000 2,355.269 BTC | 0.0000% |
7 | ![]() | BTC-BUSD | $1.0010 0.0005555 Eth | $67,110,056.0000 2,347.347 BTC | 0.0000% |
8 | ![]() | BUSD-USDT | $1.0010 0.0005555 Eth | $63,436,367.0000 63,385,632.000 BUSD | 0.0026% |
9 | ![]() | CFX-BUSD | $0.9995 0.0005542 Eth | $49,816,679.0000 117,518,513.311 CFX | 0.0047% |
10 | ![]() | SXP-BUSD | $1.0000 0.0005545 Eth | $39,640,973.0000 84,673,663.556 SXP | 0.0034% |
11 | ![]() | BTC-BUSD | $1.0000 0.0005545 Eth | $39,330,471.0000 1,376.896 BTC | 0.0000% |
12 | ![]() | BNB-BUSD | $1.0000 0.0005547 Eth | $36,363,428.0000 114,564.767 BNB | 0.0000% |
13 | ![]() | BUSD-USDT | $1.0010 0.0005555 Eth | $35,727,586.0000 35,697,226.422 BUSD | 0.0014% |
14 | ![]() | BUSD-USDT | $1.0010 0.0005555 Eth | $31,113,406.0000 31,090,077.000 BUSD | 0.0013% |
15 | ![]() | SOL-BUSD | $1.0010 0.0005554 Eth | $30,047,598.0000 1,455,234.033 SOL | 0.0001% |
16 | ![]() | BTC-BUSD | $0.9997 0.0005544 Eth | $28,133,638.0000 984.532 BTC | 0.0000% |
17 | ![]() | ETH-BUSD | $1.0000 0.0005545 Eth | $27,667,599.0000 15,361.996 ETH | 0.0000% |
18 | ![]() | ADA-BUSD | $0.9997 0.0005544 Eth | $24,922,792.0000 65,742,885.030 ADA | 0.0026% |
19 | ![]() | BUSD-TRY | $1.0190 0.0005654 Eth | $23,857,555.0000 23,404,090.084 BUSD | 0.0009% |
20 | ![]() | 0XE9E7CEA3DEDCA5984780BAFC599BD69ADD087D56-USDT | $1.0010 0.0005547 Eth | $22,410,463.0000 22,408,747.997 0XE9E7CEA3DEDCA5984780BAFC599BD69ADD087D56 | 0.0009% |
21 | ![]() | BTC-BUSD | $1.0010 0.0005556 Eth | $19,364,215.0000 677.474 BTC | 0.0000% |
22 | ![]() | MASK-BUSD | $0.9990 0.0005539 Eth | $18,077,380.0000 2,831,838.944 MASK | 0.0001% |
23 | ![]() | AGIX-BUSD | $1.0000 0.0005547 Eth | $17,844,976.0000 42,643,732.337 AGIX | 0.0017% |
24 | ![]() | BUSD-USDT | $1.0010 0.0005555 Eth | $16,675,587.0000 16,663,083.600 BUSD | 0.0007% |
25 | ![]() | MATIC-BUSD | $1.0010 0.0005554 Eth | $16,292,819.0000 14,649,108.969 MATIC | 0.0006% |
26 | ![]() | FTM-BUSD | $0.9990 0.0005539 Eth | $15,757,259.0000 34,973,415.973 FTM | 0.0014% |
27 | ![]() | JOE-BUSD | $1.0010 0.0005555 Eth | $15,277,598.0000 25,947,234.052 JOE | 0.0010% |
28 | ![]() | LTC-BUSD | $0.9992 0.0005542 Eth | $14,461,785.0000 160,670.133 LTC | 0.0000% |
29 | ![]() | ETH-BUSD | $0.9997 0.0005544 Eth | $13,376,376.0000 7,427.356 ETH | 0.0000% |
30 | ![]() | SHIB-BUSD | $1.0000 0.0005545 Eth | $13,172,424.0000 1,236,419,965,482.100 SHIB | 49.7934% |
31 | ![]() | DOGE-BUSD | $1.0010 0.0005542 Eth | $13,122,415.0000 174,619,023.277 DOGE | 0.0070% |
32 | ![]() | SHIB-BUSD | $1.0010 0.0005556 Eth | $12,022,562.0000 1,127,008,163,608.140 SHIB | 45.3871% |
33 | ![]() | BTC-BUSD | $1.0000 0.0005545 Eth | $11,272,435.0000 395.552 BTC | 0.0000% |
34 | ![]() | BTC-BUSD | $1.0010 0.0005555 Eth | $11,234,036.0000 392.940 BTC | 0.0000% |
35 | ![]() | OP-BUSD | $1.0000 0.0005547 Eth | $10,565,690.0000 4,654,416.093 OP | 0.0002% |
36 | ![]() | BUSD-USDT | $0.9994 0.0005540 Eth | $10,289,505.0000 10,295,234.730 BUSD | 0.0004% |
37 | ![]() | LUNC-BUSD | $0.9992 0.0005542 Eth | $9,578,786.0000 78,390,087,329.435 LUNC | 3.1569% |
38 | ![]() | AGIX-BUSD | $1.0000 0.0005545 Eth | $9,086,378.0000 21,730,240.000 AGIX | 0.0009% |
39 | ![]() | GALA-BUSD | $1.0000 0.0005541 Eth | $9,077,055.0000 220,289,103.307 GALA | 0.0089% |
40 | ![]() | LINK-BUSD | $0.9997 0.0005544 Eth | $8,546,751.0000 1,165,047.714 LINK | 0.0000% |
41 | ![]() | ETH-BUSD | $1.0000 0.0005545 Eth | $8,311,233.0000 4,607.824 ETH | 0.0000% |
42 | ![]() | ETH-BUSD | $1.0010 0.0005556 Eth | $8,180,269.0000 4,538.300 ETH | 0.0000% |
43 | ![]() | ETH-BUSD | $1.0010 0.0005555 Eth | $7,970,954.0000 4,422.703 ETH | 0.0000% |
44 | ![]() | ATOM-BUSD | $0.9992 0.0005542 Eth | $7,466,736.0000 671,393.702 ATOM | 0.0000% |
45 | ![]() | STX-BUSD | $1.0010 0.0005555 Eth | $7,163,620.0000 7,550,519.338 STX | 0.0003% |
46 | ![]() | AVAX-BUSD | $0.9997 0.0005544 Eth | $7,135,325.0000 409,954.253 AVAX | 0.0000% |
47 | ![]() | APT-BUSD | $1.0010 0.0005541 Eth | $7,059,811.0000 628,187.038 APT | 0.0000% |
48 | ![]() | XRP-BUSD | $1.0010 0.0005555 Eth | $7,002,927.0000 12,919,394.875 XRP | 0.0005% |
49 | ![]() | BUSD-USDT | $1.0000 0.0005553 Eth | $6,971,062.0000 6,966,256.394 BUSD | 0.0003% |
50 | ![]() | LDO-BUSD | $1.0000 0.0005547 Eth | $6,791,320.0000 2,912,184.194 LDO | 0.0001% |
51 | ![]() | FET-BUSD | $1.0000 0.0005545 Eth | $6,788,423.0000 18,435,423.888 FET | 0.0007% |
52 | ![]() | FIL-BUSD | $1.0010 0.0005555 Eth | $6,065,374.0000 1,076,051.574 FIL | 0.0000% |
53 | ![]() | HOOK-BUSD | $1.0000 0.0005547 Eth | $5,487,092.0000 3,046,474.624 HOOK | 0.0001% |
54 | ![]() | MATIC-BUSD | $1.0010 0.0005555 Eth | $4,548,894.0000 4,091,914.944 MATIC | 0.0002% |
55 | ![]() | MAGIC-BUSD | $0.9996 0.0005544 Eth | $4,500,144.0000 3,296,044.433 MAGIC | 0.0001% |
56 | ![]() | ADA-BUSD | $1.0010 0.0005555 Eth | $4,467,924.0000 11,783,024.870 ADA | 0.0005% |
57 | ![]() | ETH-BUSD | $1.0000 0.0005545 Eth | $4,434,532.0000 2,465.153 ETH | 0.0000% |
58 | ![]() | APE-BUSD | $1.0000 0.0005547 Eth | $4,432,444.0000 1,082,386.888 APE | 0.0000% |
59 | ![]() | BTC-BUSD | $1.0000 0.0005545 Eth | $4,350,811.0000 152.294 BTC | 0.0000% |
60 | ![]() | 0X55D398326F99059FF775485246999027B3197955-0XE9E7CEA3DEDCA5984780BAFC599BD69ADD087D56 | $1.0010 0.0005556 Eth | $3,902,668.0000 3,897,922.667 0X55D398326F99059FF775485246999027B3197955 | 0.0002% |
61 | ![]() | GMT-BUSD | $1.0000 0.0005547 Eth | $3,778,142.0000 9,797,933.037 GMT | 0.0004% |
62 | ![]() | DYDX-BUSD | $1.0010 0.0005556 Eth | $3,774,314.0000 1,534,710.017 DYDX | 0.0001% |
63 | ![]() | BTC-BUSD | $1.0010 0.0005556 Eth | $3,552,308.0000 124.300 BTC | 0.0000% |
64 | ![]() | DOT-BUSD | $1.0010 0.0005554 Eth | $3,390,271.0000 550,427.951 DOT | 0.0000% |
65 | ![]() | TRX-BUSD | $1.0000 0.0005541 Eth | $3,125,388.0000 47,951,425.086 TRX | 0.0019% |
66 | ![]() | BUSD-BIDR | $1.0000 0.0005547 Eth | $3,065,673.0000 3,065,653.532 BUSD | 0.0001% |
67 | ![]() | BUSD-BRL | $1.0100 0.0005606 Eth | $2,980,141.0000 2,950,432.723 BUSD | 0.0001% |
68 | ![]() | 0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D-0XE9E7CEA3DEDCA5984780BAFC599BD69ADD087D56 | $1.0010 0.0005554 Eth | $2,882,923.0000 2,880,816.555 0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D | 0.0001% |
69 | ![]() | NEAR-BUSD | $1.0010 0.0005555 Eth | $2,837,337.0000 1,449,115.956 NEAR | 0.0001% |
70 | ![]() | BTC-BUSD | $1.0010 0.0005554 Eth | $2,721,547.0000 95.221 BTC | 0.0000% |
71 | ![]() | XRP-BUSD | $1.0010 0.0005556 Eth | $2,468,709.0000 4,552,989.202 XRP | 0.0002% |
72 | ![]() | BUSD-USDT | $1.0010 0.0005552 Eth | $2,418,361.0000 2,416,261.620 BUSD | 0.0001% |
73 | ![]() | OP-BUSD | $1.0000 0.0005545 Eth | $2,253,001.0000 992,168.970 OP | 0.0000% |
74 | ![]() | ETC-BUSD | $0.9996 0.0005543 Eth | $2,206,190.0000 107,873.914 ETC | 0.0000% |
75 | ![]() | BUSD-USDT | $1.0010 0.0005546 Eth | $1,978,404.0000 1,977,228.741 BUSD | 0.0001% |
76 | ![]() | ETH-BUSD | $1.0000 0.0005545 Eth | $1,923,701.0000 1,068.372 ETH | 0.0000% |
77 | ![]() | 0X7130D2A12B9BCBFAE4F2634D864A1EE1CE3EAD9C-BUSD | $1.0000 0.0005545 Eth | $1,895,588.0000 66.387 0X7130D2A12B9BCBFAE4F2634D864A1EE1CE3EAD9C | 0.0000% |
78 | ![]() | BUSD-USDT | $1.0010 0.0005546 Eth | $1,778,446.0000 1,777,485.405 BUSD | 0.0001% |
79 | ![]() | BUSD-DAI | $1.0000 0.0005543 Eth | $1,470,956.0000 1,470,956.056 BUSD | 0.0001% |
80 | ![]() | UNI-BUSD | $1.0010 0.0005555 Eth | $1,461,798.0000 245,803.898 UNI | 0.0000% |
81 | ![]() | BUSD-USDT | $1.0010 0.0005546 Eth | $1,210,916.0000 1,210,165.580 BUSD | 0.0000% |
82 | ![]() | BUSD-USDT | $1.0010 0.0005555 Eth | $1,142,381.0000 1,158,755.800 BUSD | 0.0000% |
83 | ![]() | 0XBB4CDB9CBD36B01BD1CBAEBF2DE08D9173BC095C-0XE9E7CEA3DEDCA5984780BAFC599BD69ADD087D56 | $1.0030 0.0005565 Eth | $1,086,544.0000 3,440.412 0XBB4CDB9CBD36B01BD1CBAEBF2DE08D9173BC095C | 0.0000% |
84 | ![]() | BTC-BUSD | $1.0000 0.0005547 Eth | $999,543.0000 35.000 BTC | 0.0000% |
85 | ![]() | BTC-BUSD | $1.0000 0.0005545 Eth | $859,427.0000 30.082 BTC | 0.0000% |
86 | ![]() | ETH-BUSD | $1.0010 0.0005554 Eth | $832,562.0000 461.701 ETH | 0.0000% |
87 | ![]() | 0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D-BUSD | $1.0000 0.0005545 Eth | $620,280.0000 621,647.088 0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D | 0.0000% |
88 | ![]() | PAXG-BUSD | $1.0010 0.0005556 Eth | $532,849.0000 268.864 PAXG | 0.0000% |
89 | ![]() | MATIC-BUSD | $1.0010 0.0005556 Eth | $504,416.0000 453,432.100 MATIC | 0.0000% |
90 | ![]() | XRP-BUSD | $1.0000 0.0005545 Eth | $500,103.0000 921,458.520 XRP | 0.0000% |
91 | ![]() | SHIB-BUSD | $1.0010 0.0005556 Eth | $417,109.0000 39,165,281,863.000 SHIB | 1.5773% |
92 | ![]() | BUSD-RUB | $1.0130 0.0005614 Eth | $371,682.0000 367,089.374 BUSD | 0.0000% |
93 | ![]() | ETH-BUSD | $1.0000 0.0005547 Eth | $319,526.0000 177.497 ETH | 0.0000% |
94 | ![]() | XRP-BUSD | $1.0000 0.0005547 Eth | $211,265.0000 390,069.263 XRP | 0.0000% |
95 | ![]() | BUSD-BIDR | $1.0000 0.0005547 Eth | $177,824.0000 177,803.634 BUSD | 0.0000% |
96 | ![]() | ATOM-BUSD | $1.0010 0.0005556 Eth | $161,226.0000 14,498.200 ATOM | 0.0000% |
97 | ![]() | DOGE-BUSD | $1.0010 0.0005556 Eth | $135,265.0000 1,802,324.800 DOGE | 0.0001% |
98 | ![]() | BUSD-INR | $1.1300 0.0006280 Eth | $81,228.0000 71,751.800 BUSD | 0.0000% |
99 | ![]() | TRX-BUSD | $1.0000 0.0005545 Eth | $70,379.0000 1,092,006.400 TRX | 0.0000% |
100 | ![]() | LUNC-BUSD | $1.0000 0.0005541 Eth | $32,242.0000 263,606,660.215 LUNC | 0.0106% |
Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x023F34ce25758d4BC8FaC68e7472545D6b86d4Ea
Contract Name:
L2StandardERC20
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./IL2StandardERC20.sol"; contract L2StandardERC20 is IL2StandardERC20, ERC20 { address public l1Token; address public l2Bridge; uint8 private immutable _decimals; /** * @param _l2Bridge Address of the L2 standard bridge. * @param _l1Token Address of the corresponding L1 token. * @param _name ERC20 name. * @param _symbol ERC20 symbol. * @param decimals_ ERC20 decimals. */ constructor( address _l2Bridge, address _l1Token, string memory _name, string memory _symbol, uint8 decimals_ ) ERC20(_name, _symbol) { l1Token = _l1Token; l2Bridge = _l2Bridge; _decimals = decimals_; } modifier onlyL2Bridge() { require(msg.sender == l2Bridge, "Only L2 Bridge can mint and burn"); _; } function supportsInterface(bytes4 _interfaceId) public pure returns (bool) { bytes4 firstSupportedInterface = bytes4(keccak256("supportsInterface(bytes4)")); // ERC165 bytes4 secondSupportedInterface = IL2StandardERC20.l1Token.selector ^ IL2StandardERC20.mint.selector ^ IL2StandardERC20.burn.selector; return _interfaceId == firstSupportedInterface || _interfaceId == secondSupportedInterface; } function mint(address _to, uint256 _amount) public virtual onlyL2Bridge { _mint(_to, _amount); emit Mint(_to, _amount); } function burn(address _from, uint256 _amount) public virtual onlyL2Bridge { _burn(_from, _amount); emit Burn(_from, _amount); } function decimals() public view virtual override returns (uint8) { return _decimals; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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 Contracts guidelines: functions revert * instead 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, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 override returns (uint8) { return 18; } /** * @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); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } 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] + 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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This 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); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(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: * * - `account` 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 += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(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 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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol"; interface IL2StandardERC20 is IERC20, IERC165 { function l1Token() external returns (address); function mint(address _to, uint256 _amount) external; function burn(address _from, uint256 _amount) external; event Mint(address indexed _account, uint256 _amount); event Burn(address indexed _account, uint256 _amount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 10000 }, "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_l2Bridge","type":"address"},{"internalType":"address","name":"_l1Token","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"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":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Mint","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":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"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":"l1Token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2Bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620013fd380380620013fd833981016040819052620000349162000234565b8251839083906200004d906003906020850190620000a4565b50805162000063906004906020840190620000a4565b5050600580546001600160a01b039687166001600160a01b0319918216179091556006805497909616961695909517909355505060ff16608052506200031d565b828054620000b290620002e0565b90600052602060002090601f016020900481019282620000d6576000855562000121565b82601f10620000f157805160ff191683800117855562000121565b8280016001018555821562000121579182015b828111156200012157825182559160200191906001019062000104565b506200012f92915062000133565b5090565b5b808211156200012f576000815560010162000134565b80516001600160a01b03811681146200016257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200018f57600080fd5b81516001600160401b0380821115620001ac57620001ac62000167565b604051601f8301601f19908116603f01168101908282118183101715620001d757620001d762000167565b81604052838152602092508683858801011115620001f457600080fd5b600091505b83821015620002185785820183015181830184015290820190620001f9565b838211156200022a5760008385830101525b9695505050505050565b600080600080600060a086880312156200024d57600080fd5b62000258866200014a565b945062000268602087016200014a565b60408701519094506001600160401b03808211156200028657600080fd5b6200029489838a016200017d565b94506060880151915080821115620002ab57600080fd5b50620002ba888289016200017d565b925050608086015160ff81168114620002d257600080fd5b809150509295509295909350565b600181811c90821680620002f557607f821691505b602082108114156200031757634e487b7160e01b600052602260045260246000fd5b50919050565b6080516110c462000339600039600061018101526110c46000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806370a0823111610097578063a9059cbb11610066578063a9059cbb14610237578063ae1f6aaf1461024a578063c01e1bd61461028f578063dd62ed3e146102af57600080fd5b806370a08231146101d357806395d89b41146102095780639dc29fac14610211578063a457c2d71461022457600080fd5b806323b872dd116100d357806323b872dd14610167578063313ce5671461017a57806339509351146101ab57806340c10f19146101be57600080fd5b806301ffc9a71461010557806306fdde031461012d578063095ea7b31461014257806318160ddd14610155575b600080fd5b610118610113366004610e6c565b6102f5565b60405190151581526020015b60405180910390f35b6101356103b5565b6040516101249190610eb5565b610118610150366004610f51565b610447565b6002545b604051908152602001610124565b610118610175366004610f7b565b61045d565b60405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610124565b6101186101b9366004610f51565b61052e565b6101d16101cc366004610f51565b610577565b005b6101596101e1366004610fb7565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b61013561063c565b6101d161021f366004610f51565b61064b565b610118610232366004610f51565b610704565b610118610245366004610f51565b6107c2565b60065461026a9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610124565b60055461026a9073ffffffffffffffffffffffffffffffffffffffff1681565b6101596102bd366004610fd2565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60007f01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e27f1d1d8b63000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000084167f01ffc9a70000000000000000000000000000000000000000000000000000000014806103ad57507fffffffff00000000000000000000000000000000000000000000000000000000848116908216145b949350505050565b6060600380546103c490611005565b80601f01602080910402602001604051908101604052809291908181526020018280546103f090611005565b801561043d5780601f106104125761010080835404028352916020019161043d565b820191906000526020600020905b81548152906001019060200180831161042057829003601f168201915b5050505050905090565b60006104543384846107cf565b50600192915050565b600061046a84848461094f565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600160209081526040808320338452909152902054828110156105165760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61052385338584036107cf565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091610454918590610572908690611088565b6107cf565b60065473ffffffffffffffffffffffffffffffffffffffff1633146105de5760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161050d565b6105e88282610bb5565b8173ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161063091815260200190565b60405180910390a25050565b6060600480546103c490611005565b60065473ffffffffffffffffffffffffffffffffffffffff1633146106b25760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161050d565b6106bc8282610cbb565b8173ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405161063091815260200190565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152812054828110156107ab5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161050d565b6107b833858584036107cf565b5060019392505050565b600061045433848461094f565b73ffffffffffffffffffffffffffffffffffffffff83166108575760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161050d565b73ffffffffffffffffffffffffffffffffffffffff82166108e05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161050d565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166109d85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161050d565b73ffffffffffffffffffffffffffffffffffffffff8216610a615760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161050d565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610afd5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161050d565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290610b41908490611088565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610ba791815260200190565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff8216610c185760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161050d565b8060026000828254610c2a9190611088565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290610c64908490611088565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216610d445760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161050d565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015610de05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161050d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260408120838303905560028054849290610e1c9084906110a0565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610942565b600060208284031215610e7e57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610eae57600080fd5b9392505050565b600060208083528351808285015260005b81811015610ee257858101830151858201604001528201610ec6565b81811115610ef4576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610f4c57600080fd5b919050565b60008060408385031215610f6457600080fd5b610f6d83610f28565b946020939093013593505050565b600080600060608486031215610f9057600080fd5b610f9984610f28565b9250610fa760208501610f28565b9150604084013590509250925092565b600060208284031215610fc957600080fd5b610eae82610f28565b60008060408385031215610fe557600080fd5b610fee83610f28565b9150610ffc60208401610f28565b90509250929050565b600181811c9082168061101957607f821691505b60208210811415611053577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561109b5761109b611059565b500190565b6000828210156110b2576110b2611059565b50039056fea164736f6c6343000809000a000000000000000000000000420000000000000000000000000000000000001000000000000000000000000015b0dd2c5db529ab870915ff498bea6d20fb6b9600000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000004424f424f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004424f424f00000000000000000000000000000000000000000000000000000000