Skip to content

why not wait for token notification for withdrawal #1

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

Open
shunjizhan opened this issue Jan 16, 2025 · 0 comments
Open

why not wait for token notification for withdrawal #1

shunjizhan opened this issue Jan 16, 2025 · 0 comments

Comments

@shunjizhan
Copy link

Hi friend, I am trying to study this awesome project, and I am a little confused about the withdrawal logic https://github.com/evaafi/contracts/blob/main/contracts/core/master-withdrawal.fc#L214-L227

Why can we update state right after sending jetton to user, without waiting for it to arrive (notifiaction)? Are we assuming the token transfer will succeed for sure?

Thank you in advance for any clarification : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant