Discussion for ERC-7914: An Interface for Transfer From Native
Should this requirement be split into two:
SHOULD early return with true when amount == 0 and skip any event emissions […]
Maybe becomes:
SHOULD early return with true when amount == 0 and skip any event emissions. MUST NOT execute any fallback function when amount == 0.
You might want to investigate ERC-165 for discovering support for this interface.
I don’t think I understand the purpose of the from
parameter in transferFromNative
. An account can only move its own ether. The rationale given is in the specification:
If
from
is notaddress(this)
the contract COULD forward the call. Note that specifically parameterizing afrom
address allows for flexibility, and other types of integrations with this standard.
I don’t think this makes much sense. A delegated approval chain seems unsafe. I suspect this parameter was naively copied over from erc20. Perhaps you could give an example of how this could make sense. Otherwise the from
parameter should be removed.