Skip to content

Conversation

karcreativeworks
Copy link

Description

This PR solves the issue mention by issue #28 - it constructs the correct swapCallParameters based on the passed in swapRouterType, making deadline optional, This PR does not break the support for the original SwapRouter as well. With many apps depending on base swaps, and in base chain deployments, the swaprouter02 is the only contract that's supported, so this is high priority for some of us.

How Has This Been Tested?

Manually tested

Are there any breaking changes?

No breaking changes (only added new typescript files that doesn't effect any of the previous versions)

(Optional) Feedback Focus

  • I am not sure if my enum decleration in this file is corect/incorrect.
  • A more thorough testing would be good (I only tested with swaprouter02)

(Optional) Follow Ups

Nothing of such

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.

1 participant