aave-protocol-v2/specs/harness/StableDebtTokenHarness.sol

27 lines
870 B
Solidity
Raw Normal View History

2020-11-20 10:45:20 +00:00
pragma solidity 0.6.12;
2020-10-14 21:59:12 +00:00
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) {}
2020-10-14 21:59:12 +00:00
function balanceOf(address account) public override view returns (uint256) {
return IncentivizedERC20.balanceOf(account);
}
2020-10-14 21:59:12 +00:00
function _calcTotalSupply(uint256 avgRate) internal override view returns (uint256) {
return IncentivizedERC20.totalSupply();
}
2020-10-14 21:59:12 +00:00
function getIncentivesController() public view returns (address) {
return address(_incentivesController);
}
}