aave-protocol-v2/contracts/mocks/tokens/WETH9Mocked.sol

13 lines
364 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: agpl-3.0
2020-11-20 10:41:58 +00:00
pragma solidity >=0.4.22 <=0.6.12;
2020-10-29 11:44:21 +00:00
import {WETH9} from '../dependencies/weth/WETH9.sol';
2020-10-29 11:44:21 +00:00
contract WETH9Mocked is WETH9 {
2020-10-29 11:44:21 +00:00
// Mint not backed by Ether: only for testing purposes
function mint(uint256 value) public returns (bool) {
balanceOf[msg.sender] += value;
emit Transfer(address(0), msg.sender, value);
}
}