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

Add dai pool #145

Merged
merged 1 commit into from
May 18, 2021
Merged

Add dai pool #145

merged 1 commit into from
May 18, 2021

Conversation

CodeSandwich
Copy link
Contributor

This is a part of #128 for the special case of Dai. This token isn't fully EIP-2612 compatible, but it's used in upstream.

This PR adds a basic implementation of Dai, which is just an ERC-20 with permit. The real Dai contract doesn't compile with modern versions of Solidity and there are no yarn packages with it already precompiled. We also need its API, which is available as a package, but it too needs old Solidity to work. An alternative would be to pull the Dai source code, compile it to a JSON and keep a copy of it in our repo. I think that with such simple contract it's clearer to maintain these few lines of code instead of a binary blob.

Signed-off-by: Igor Żuk <[email protected]>
@CodeSandwich CodeSandwich merged commit 5611ced into master May 18, 2021
@CodeSandwich CodeSandwich deleted the igor/dai-pool branch May 18, 2021 10:43
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