2020-08-20 12:32:20 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
2020-11-20 10:45:20 +00:00
|
|
|
pragma solidity 0.6.12;
|
2020-08-10 18:20:08 +00:00
|
|
|
|
2020-11-23 10:28:57 +00:00
|
|
|
import {AToken} from '../../protocol/tokenization/AToken.sol';
|
|
|
|
import {LendingPool} from '../../protocol/lendingpool/LendingPool.sol';
|
2020-08-10 18:20:08 +00:00
|
|
|
|
|
|
|
contract MockAToken is AToken {
|
|
|
|
constructor(
|
2020-09-16 14:34:29 +00:00
|
|
|
LendingPool pool,
|
|
|
|
address underlyingAssetAddress,
|
|
|
|
address reserveTreasury,
|
|
|
|
string memory tokenName,
|
|
|
|
string memory tokenSymbol,
|
2020-09-15 13:53:20 +00:00
|
|
|
address incentivesController
|
2020-10-08 13:41:48 +00:00
|
|
|
)
|
|
|
|
public
|
|
|
|
AToken(
|
|
|
|
pool,
|
|
|
|
underlyingAssetAddress,
|
|
|
|
reserveTreasury,
|
|
|
|
tokenName,
|
|
|
|
tokenSymbol,
|
|
|
|
incentivesController
|
|
|
|
)
|
|
|
|
{}
|
2020-08-10 18:20:08 +00:00
|
|
|
|
2020-11-23 10:28:57 +00:00
|
|
|
function getRevision() internal pure override returns (uint256) {
|
2020-08-10 18:20:08 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|