change public to external on debt tokens -2

This commit is contained in:
andyk 2020-08-21 10:24:59 +03:00
parent dc4823ec09
commit cdaa313f65
2 changed files with 8 additions and 8 deletions

View File

@ -143,7 +143,7 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
address _user, address _user,
uint256 _amount, uint256 _amount,
uint256 _rate uint256 _rate
) public override onlyLendingPool { ) external override onlyLendingPool {
MintLocalVars memory vars; MintLocalVars memory vars;
//cumulates the user debt //cumulates the user debt
@ -193,7 +193,7 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
* @param _user the address of the user * @param _user the address of the user
* @param _amount the amount of debt tokens to mint * @param _amount the amount of debt tokens to mint
**/ **/
function burn(address _user, uint256 _amount) public override onlyLendingPool { function burn(address _user, uint256 _amount) external override onlyLendingPool {
( (
uint256 previousBalance, uint256 previousBalance,
uint256 currentBalance, uint256 currentBalance,

View File

@ -103,12 +103,12 @@ abstract contract DebtTokenBase is IERC20, VersionedInitializable {
* @dev being non transferrable, the debt token does not implement any of the * @dev being non transferrable, the debt token does not implement any of the
* standard ERC20 functions for transfer and allowance. * standard ERC20 functions for transfer and allowance.
**/ **/
function transfer(address recipient, uint256 _amount) public virtual override returns (bool) { function transfer(address recipient, uint256 _amount) external virtual override returns (bool) {
revert('TRANSFER_NOT_SUPPORTED'); revert('TRANSFER_NOT_SUPPORTED');
} }
function allowance(address owner, address spender) function allowance(address owner, address spender)
public external
virtual virtual
override override
view view
@ -117,7 +117,7 @@ abstract contract DebtTokenBase is IERC20, VersionedInitializable {
revert('ALLOWANCE_NOT_SUPPORTED'); revert('ALLOWANCE_NOT_SUPPORTED');
} }
function approve(address spender, uint256 _amount) public virtual override returns (bool) { function approve(address spender, uint256 _amount) external virtual override returns (bool) {
revert('APPROVAL_NOT_SUPPORTED'); revert('APPROVAL_NOT_SUPPORTED');
} }
@ -125,16 +125,16 @@ abstract contract DebtTokenBase is IERC20, VersionedInitializable {
address sender, address sender,
address recipient, address recipient,
uint256 _amount uint256 _amount
) public virtual override returns (bool) { ) external virtual override returns (bool) {
revert('TRANSFER_NOT_SUPPORTED'); revert('TRANSFER_NOT_SUPPORTED');
} }
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { function increaseAllowance(address spender, uint256 addedValue) external virtual returns (bool) {
revert('ALLOWANCE_NOT_SUPPORTED'); revert('ALLOWANCE_NOT_SUPPORTED');
} }
function decreaseAllowance(address spender, uint256 subtractedValue) function decreaseAllowance(address spender, uint256 subtractedValue)
public external
virtual virtual
returns (bool) returns (bool)
{ {