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

13 lines
364 B
Solidity

// SPDX-License-Identifier: agpl-3.0
pragma solidity >=0.4.22 <=0.6.12;
import {WETH9} from '../dependencies/weth/WETH9.sol';
contract WETH9Mocked is WETH9 {
// 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);
}
}