Hi Guys,
I have a set of the contract with a user proxy like structure wherein each user has a proxy contract like ds-proxy now I additionally have an external that I want to interact with via my proxy through delegate call function now the issue is I am able to approve the external contract to spend my tokens via the proxy but when I try to transfer the tokens from the user to the external contract which uses safe erc20 via the proxy my tx gets reverted which you might be able to see here
Now as I debug in tenderly I see the tx reverts here
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
the function is _functionCallWithValue which is in address.sol called by safe erc20
So I wanna Know:
- am I doing something wrong here?
2.at what point is the _functionCallWithValue called from safe erc20?
Thanks