mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
28 lines
919 B
Solidity
28 lines
919 B
Solidity
pragma solidity ^0.6.8;
|
|
|
|
import {StableDebtToken} from '../../contracts/tokenization/StableDebtToken.sol';
|
|
import {IncentivizedERC20} from '../../contracts/tokenization/IncentivizedERC20.sol';
|
|
|
|
contract StableDebtTokenHarness is StableDebtToken {
|
|
|
|
constructor(
|
|
address pool,
|
|
address underlyingAsset,
|
|
string memory name,
|
|
string memory symbol,
|
|
address incentivesController
|
|
) public StableDebtToken(pool, underlyingAsset, name, symbol, incentivesController) {}
|
|
|
|
function balanceOf(address account) public override view returns (uint256) {
|
|
return IncentivizedERC20.balanceOf(account);
|
|
}
|
|
|
|
function _calcTotalSupply(uint256 avgRate) internal override view returns (uint256) {
|
|
return IncentivizedERC20.totalSupply();
|
|
}
|
|
|
|
function getIncentivesController() public view returns (address) {
|
|
return address(_incentivesController);
|
|
}
|
|
|
|
} |