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

POC Approach 1 ( No Wrapping and using ERC20Predicate contract ) #307

Closed
wants to merge 5 commits into from

Conversation

rzmahmood
Copy link

@rzmahmood rzmahmood commented Jul 19, 2023

In reference to this issue, this is a PoC of 1 approach. Should not be merged.

#299

Overall, I'm not very happy with the approach the way the code looks when this approach is taken. it feels very hacky and like trying to fit a square peg in a round hole.

@@ -74,6 +76,10 @@ contract RootERC20Predicate is Initializable, IRootERC20Predicate {
_deposit(rootToken, msg.sender, amount);
}

function depositNativeTo(address receiver) external payable {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to IRootERC20Predicate and have documentation indicating this doc inherits from the interface

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can clean up docs and more if we feel like this is the 'overall' right approach we want to take @drinkcoffee . ATM it's just PoC level code

@rzmahmood rzmahmood closed this Jul 19, 2023
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

Successfully merging this pull request may close these issues.

2 participants