2020-10-14 21:59:12 +00:00
|
|
|
pragma solidity ^0.6.8;
|
|
|
|
|
|
|
|
import {StableDebtToken} from '../../contracts/tokenization/StableDebtToken.sol';
|
|
|
|
import {IncentivizedERC20} from '../../contracts/tokenization/IncentivizedERC20.sol';
|
|
|
|
|
|
|
|
contract StableDebtTokenHarness is StableDebtToken {
|
2020-10-30 15:04:31 +00:00
|
|
|
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
|
|
|
|
2020-10-30 15:04:31 +00:00
|
|
|
function balanceOf(address account) public override view returns (uint256) {
|
|
|
|
return IncentivizedERC20.balanceOf(account);
|
|
|
|
}
|
2020-10-14 21:59:12 +00:00
|
|
|
|
2020-10-30 15:04:31 +00:00
|
|
|
function _calcTotalSupply(uint256 avgRate) internal override view returns (uint256) {
|
|
|
|
return IncentivizedERC20.totalSupply();
|
|
|
|
}
|
2020-10-14 21:59:12 +00:00
|
|
|
|
2020-10-30 15:04:31 +00:00
|
|
|
function getIncentivesController() public view returns (address) {
|
|
|
|
return address(_incentivesController);
|
|
|
|
}
|
|
|
|
}
|