mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
approve renamed
This commit is contained in:
parent
d2700b42e3
commit
79d88be34e
|
@ -376,7 +376,7 @@ abstract contract Euler is Helpers {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Approve debt.
|
* @dev Approve Spender's debt.
|
||||||
* @notice Approve sender to send debt.
|
* @notice Approve sender to send debt.
|
||||||
* @param subAccountId Subaccount id of receiver
|
* @param subAccountId Subaccount id of receiver
|
||||||
* @param debtSender Address of sender
|
* @param debtSender Address of sender
|
||||||
|
@ -384,7 +384,7 @@ abstract contract Euler is Helpers {
|
||||||
* @param amt The amount of the token.
|
* @param amt The amount of the token.
|
||||||
* @param setId ID stores the amount of tokens deposited.
|
* @param setId ID stores the amount of tokens deposited.
|
||||||
*/
|
*/
|
||||||
function approveDebt(
|
function approveSpenderDebt(
|
||||||
uint256 subAccountId,
|
uint256 subAccountId,
|
||||||
address debtSender,
|
address debtSender,
|
||||||
address token,
|
address token,
|
||||||
|
@ -395,7 +395,6 @@ abstract contract Euler is Helpers {
|
||||||
payable
|
payable
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
require(instaList.accountID(debtSender) != 0, "not-a-DSA");
|
|
||||||
|
|
||||||
bool isEth = token == ethAddr;
|
bool isEth = token == ethAddr;
|
||||||
address _token = isEth ? wethAddr : token;
|
address _token = isEth ? wethAddr : token;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user