added dsa check

This commit is contained in:
Shriya Tyagi 2022-08-11 05:14:39 +08:00
parent ef50cf7188
commit d2700b42e3

View File

@ -395,6 +395,7 @@ 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;