2020-08-20 12:32:20 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
2020-08-10 18:20:08 +00:00
|
|
|
pragma solidity ^0.6.8;
|
|
|
|
|
|
|
|
import {AToken} from '../../tokenization/AToken.sol';
|
|
|
|
import {LendingPool} from '../../lendingpool/LendingPool.sol';
|
|
|
|
|
|
|
|
contract MockAToken is AToken {
|
|
|
|
constructor(
|
|
|
|
LendingPool _pool,
|
|
|
|
address _underlyingAssetAddress,
|
|
|
|
string memory _tokenName,
|
|
|
|
string memory _tokenSymbol
|
2020-09-10 10:51:52 +00:00
|
|
|
) public AToken(_pool, _underlyingAssetAddress,address(0), _tokenName, _tokenSymbol) {}
|
2020-08-10 18:20:08 +00:00
|
|
|
|
|
|
|
function getRevision() internal override pure returns (uint256) {
|
|
|
|
return 0x2;
|
|
|
|
}
|
|
|
|
|
|
|
|
function initialize(
|
|
|
|
uint8 _underlyingAssetDecimals,
|
|
|
|
string calldata _tokenName,
|
|
|
|
string calldata _tokenSymbol
|
|
|
|
) external virtual override initializer {
|
2020-09-04 14:27:35 +00:00
|
|
|
_setName(_tokenName);
|
|
|
|
_setSymbol(_tokenSymbol);
|
|
|
|
_setDecimals(_underlyingAssetDecimals);
|
2020-08-10 18:20:08 +00:00
|
|
|
}
|
|
|
|
}
|