mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
29 lines
793 B
Solidity
29 lines
793 B
Solidity
pragma solidity ^0.6.8;
|
|
|
|
import {AToken} from '../../tokenization/AToken.sol';
|
|
import {LendingPool} from '../../lendingpool/LendingPool.sol';
|
|
import '@nomiclabs/buidler/console.sol';
|
|
|
|
contract MockAToken is AToken {
|
|
constructor(
|
|
LendingPool _pool,
|
|
address _underlyingAssetAddress,
|
|
string memory _tokenName,
|
|
string memory _tokenSymbol
|
|
) public AToken(_pool, _underlyingAssetAddress, _tokenName, _tokenSymbol) {}
|
|
|
|
function getRevision() internal override pure returns (uint256) {
|
|
return 0x2;
|
|
}
|
|
|
|
function initialize(
|
|
uint8 _underlyingAssetDecimals,
|
|
string calldata _tokenName,
|
|
string calldata _tokenSymbol
|
|
) external virtual override initializer {
|
|
_name = _tokenName;
|
|
_symbol = _tokenSymbol;
|
|
_setupDecimals(_underlyingAssetDecimals);
|
|
}
|
|
}
|