-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tokensToSend
Callback
#23
Comments
Deviating from send:One of the main reason of changing the method name from Added complexityUnderstanding what happens when sending tokens is more complicated. Now two methods must be checked and understood. Adoption of
|
ITokenRecipient
with ITokenHolder
tokensToSend
Callback
Regarding my previous comments and after discussing the matter internally. I've revised my position. Using EIP-820 (which is already in used by ERC-777) does not significantly add more complexity. There are some valid use cases for having this check in place; and those cannot be implemented with operators in scenarios where some safety checks must be implemented for all operator transactions. The ability of changing an address's manager in EIP-820 also ensure that even with the private key of the account, the check cannot be removed. |
This proposal adds the above interface which must be registered via EIP-820, similar to
tokensReceived
.The difference from
tokensReceived
is thattokensToSend
is called for thefrom
address before sending the tokens. This allows the token holder to perform a a final check, logging or some other action before sending the tokens.The text was updated successfully, but these errors were encountered: