/
BVM_MANTLE.sol
58 lines (49 loc) · 1.89 KB
/
BVM_MANTLE.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/* Library Imports */
import { Lib_PredeployAddresses } from "../../libraries/constants/Lib_PredeployAddresses.sol";
/* Contract Imports */
import { L2StandardERC20 } from "../../standards/L2StandardERC20.sol";
/**
* @title BVM_MANTLE
* @dev The ETH predeploy provides an ERC20 interface for ETH deposited to Layer 2. Note that
* unlike on Layer 1, Layer 2 accounts do not have a balance field.
*/
contract BVM_MANTLE is L2StandardERC20 {
/***************
* Constructor *
***************/
// hardcode to mantle token mainnet address
constructor()
L2StandardERC20(Lib_PredeployAddresses.L2_STANDARD_BRIDGE, address(0x1A4b46696b2bB4794Eb3D4c26f1c55F9170fa4C5), "Mantle Token", "MNT", 18)
{}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
revert("BVM_MANTLE: transfer is disabled pending further community discussion.");
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
revert("BVM_MANTLE: approve is disabled pending further community discussion.");
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
revert("BVM_MANTLE: transferFrom is disabled pending further community discussion.");
}
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
override
returns (bool)
{
revert("BVM_MANTLE: increaseAllowance is disabled pending further community discussion.");
}
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
override
returns (bool)
{
revert("BVM_MANTLE: decreaseAllowance is disabled pending further community discussion.");
}
}