-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Test 1155 burning outside lock #197
Comments
Hi @hensha256 So as i am able to understand:
So Now: we should test that:
please tell me... Also please tell me these things. i am not able to understand this:---
|
Hi I want to work on this issue |
Closed by #379 |
Components
Lock and Call, 1155 Balances
Describe the suggested feature and problem it solves.
To burn an 1155 in exchange for pool balance, the onERC1155Received hook burns and accounts the tokens. However this function doesnt have a lock on it. I think the accountDelta function should revert if you try to transfer 1155s into the manager outside of a lock (as the lockedBy.length should be 0). However we should test this to make sure theres nothing weird you can do by calling onERC1155Received outside of a lock.
Secondly what if an unsafe transfer is done, so the onERC1155Received hook isnt called? Does the pool get a balance that then cannot be burnt?
Describe the desired implementation.
Tests for the above edgecases, and any others we can think of, to check we've covered any unplanned behaviour.
Describe alternatives.
No response
Additional context.
No response
The text was updated successfully, but these errors were encountered: