Skip to content
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

Extending to ERC20's #15

Open
aodhgan opened this issue Feb 23, 2023 · 1 comment
Open

Extending to ERC20's #15

aodhgan opened this issue Feb 23, 2023 · 1 comment

Comments

@aodhgan
Copy link

aodhgan commented Feb 23, 2023

Cool repo. In the case of (create2-based) SneakyAuction, at auction end you could potentially deploy preset bytecode to transfer/sweep an ERC20 to the highest bidder, and similarly for withdrawing to non-winning bids back to the original account. Is it possible/did you consider this and what if any difficulties did you foresee?

@moodlezoup
Copy link
Collaborator

Thanks! Yes it's definitely possible and I did consider implementing ERC20 support, but it would add a bit of extra complexity for the balance proof –– you would need to perform some additional Merkle proof steps because ERC20 balances are in contract storage.
i.e. for ERC20 you'd be doing this instead of this

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

2 participants