From 79d88be34e5d71b9132ccea04224c8722f6c0ba2 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi Date: Thu, 11 Aug 2022 05:39:53 +0800 Subject: [PATCH] approve renamed --- contracts/mainnet/connectors/euler/main.sol | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contracts/mainnet/connectors/euler/main.sol b/contracts/mainnet/connectors/euler/main.sol index 9b31ec1e..289d211b 100644 --- a/contracts/mainnet/connectors/euler/main.sol +++ b/contracts/mainnet/connectors/euler/main.sol @@ -376,7 +376,7 @@ abstract contract Euler is Helpers { } /** - * @dev Approve debt. + * @dev Approve Spender's debt. * @notice Approve sender to send debt. * @param subAccountId Subaccount id of receiver * @param debtSender Address of sender @@ -384,7 +384,7 @@ abstract contract Euler is Helpers { * @param amt The amount of the token. * @param setId ID stores the amount of tokens deposited. */ - function approveDebt( + function approveSpenderDebt( uint256 subAccountId, address debtSender, address token, @@ -395,7 +395,6 @@ abstract contract Euler is Helpers { payable returns (string memory _eventName, bytes memory _eventParam) { - require(instaList.accountID(debtSender) != 0, "not-a-DSA"); bool isEth = token == ethAddr; address _token = isEth ? wethAddr : token;