Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

feat: create happy path for default token support #77

Closed
wants to merge 2 commits into from

Conversation

AustinGreen
Copy link
Contributor

Motivation:

This PR allows deployers to specify their tokenAdapter address to the zero address and instruct the creator and caster to call the token contract directly. This is only possible for tokens that implement IVotes and IERC6372.

Modifications:

Add token to the factory deploy parameters and define internal functions that either call the token directly or use the tokenAdapter.

Result:

We'll have default support for tokens that implement IVotes and IERC6372.

@AustinGreen AustinGreen changed the base branch from main to austin/deploy-module December 17, 2023 14:40
@0xrajath
Copy link
Contributor

This PR feels unnecessary IMO. It's sort of making things more complicated by introducing a new flow. I actually like the fact that we have to have a tokenAdapter for everything (it's very simple to reason about) instead about having to keep track of when a token adapter is needed or not.

@AustinGreen
Copy link
Contributor Author

Yeah I agree after discussing. Going to close this and provide context in #75

@AustinGreen AustinGreen deleted the austin/default-support branch January 11, 2024 18:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants