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 Permit2 Pull Token Logics #28

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

Jeff-CCH
Copy link
Contributor

@Jeff-CCH Jeff-CCH commented Nov 17, 2023

  • pull token
  • test
  • yarn changeset

@Jeff-CCH Jeff-CCH force-pushed the feat/integrate-permit2 branch 2 times, most recently from 755db43 to 1a965f1 Compare November 19, 2023 13:34
Copy link
Contributor

@chouandy chouandy left a comment

Choose a reason for hiding this comment

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

I'm wondering whether it's necessary to maintain another set of permit2 addresses and typechains within logics. Since Logic inherits from RouterKit, we can retrieve the permit2 address through the agent implementation. cc @zodahu

https://github.com/dinngo/protocolink-js-sdk/blob/master/packages/core/src/router-kit.ts#L61

https://github.com/dinngo/protocolink-js-sdk/blob/master/packages/core/src/router-kit.ts#L73

@Jeff-CCH Jeff-CCH force-pushed the feat/integrate-permit2 branch from 1a965f1 to 7dc860e Compare November 22, 2023 06:58
@Jeff-CCH Jeff-CCH changed the title draft: pull token Add Permit2 Pull Token Logics Nov 22, 2023
Copy link
Contributor

@zodahu zodahu left a comment

Choose a reason for hiding this comment

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

LGTM

src/logics/permit2/logic.pull-token.ts Outdated Show resolved Hide resolved
src/logics/permit2/configs.ts Outdated Show resolved Hide resolved
@Jeff-CCH Jeff-CCH force-pushed the feat/integrate-permit2 branch from 7dc860e to 4abbf19 Compare November 22, 2023 07:12
Copy link
Contributor

@chouandy chouandy left a comment

Choose a reason for hiding this comment

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

LGTM

@Jeff-CCH Jeff-CCH force-pushed the feat/integrate-permit2 branch from 4abbf19 to 8cccf10 Compare November 22, 2023 07:17
@Jeff-CCH Jeff-CCH merged commit 3a1c3bc into dinngo:master Nov 22, 2023
2 of 3 checks passed
@Jeff-CCH Jeff-CCH deleted the feat/integrate-permit2 branch December 26, 2023 03:05
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.

3 participants