-
Notifications
You must be signed in to change notification settings - Fork 44
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
Make invoke/call contract require explicit flag to enable reentry #336
Comments
The host side has disabled reentry. We still need to expose a flag to set it in the host functions and plumb it on the sdk side. |
Reopened to follow up on: #513 (comment) |
Reentrancy is needed to offer liquidity for flashloans. |
Hello @leighmcculloch @jayz22 @graydon It's better to leave the possibility wuth an explicit flag, than to not let do reentry at all in Soroban! |
@esteblock We did not have chance to prioritize this. We may consider it in the next phase. This feature has just not been requested much and we felt it could create more footgun if used carelessly. |
Hello, we also need reentrancy feature for our smart-contracts |
Contracts have access to calling other contracts but we haven't yet implemented things we discussed would help prevent unintentional re-entry.
The idea is that calling a contract should require setting a flag for whether re-entry is allowed. And in this way the possibility for re-entry will be explicitly visible to the developer.
The text was updated successfully, but these errors were encountered: