fix: fixed permission on repay

This commit is contained in:
The3D 2021-06-30 09:48:58 +02:00
parent a5b3e0f122
commit b3f7c1e883

View File

@ -133,7 +133,14 @@ contract PermissionedLendingPool is LendingPool {
uint256 amount,
uint256 rateMode,
address onBehalfOf
) public virtual override onlyBorrowers(onBehalfOf) returns (uint256) {
)
public
virtual
override
onlyBorrowers(onBehalfOf)
onlyValidPermissionAdmin(onBehalfOf)
returns (uint256)
{
return super.repay(asset, amount, rateMode, onBehalfOf);
}