-
Notifications
You must be signed in to change notification settings - Fork 59
/
SOMockEnzymeV4Vault.sol
45 lines (33 loc) · 1012 Bytes
/
SOMockEnzymeV4Vault.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
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.5.17;
import "../../external/enzyme/IEnzymeV4Vault.sol";
import "../../modules/token/external/ERC20.sol";
import "../common/ERC20Detailed.sol";
contract SOMockEnzymeV4Vault is IEnzymeV4Vault, ERC20Detailed, ERC20 {
address accessor;
constructor(
address _accessor,
string memory name,
string memory symbol,
uint8 decimals
) ERC20Detailed(name, symbol, decimals) public {
accessor = _accessor;
}
function getAccessor() external view returns (address) {
return accessor;
}
function mint(address account, uint256 amount) public returns (bool) {
_mint(account, amount);
return true;
}
function burn(address account, uint256 amount) public returns (bool) {
_burn(account, amount);
return true;
}
function getOwner() public view returns (address) {
return address(0);
}
function mintShares(address, uint256) external {
revert("Unexpected SOMockEnzymeV4Vault call");
}
}