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

Refactor Join/Exit Interface to Add/Remove Liquidity #124

Merged
merged 29 commits into from
Nov 14, 2023

Conversation

brunoguerios
Copy link
Member

@brunoguerios brunoguerios commented Nov 10, 2023

Main changes:

  • rename Join to AddLiquidity (and all its variations)
  • rename Exit to RemoveLiquidity (and all its variations)

Other changes:

  • rename several "Result" to "Output" to keep consistency with "Input"
  • rename SingleAsset to SingleToken to follow standard defined on Notion

Notes:

  • did not change external interfaces (e.g. encoders from v2 are still using join/exit)
  • used AddLiquidity always as prefix for consistency (e.g. AddLiquidityUnbalanced instead of UnbalancedJoin)
  • used RemoveLiquidity always as prefix for consistency (e.g. RemoveLiquidityUnbalanced instead of UnbalancedExit)

# Conflicts:
#	src/entities/join/types.ts
#	test/lib/utils/exitHelper.ts
#	test/lib/utils/joinHelper.ts
Copy link
Member

@johngrantuk johngrantuk left a comment

Choose a reason for hiding this comment

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

A lot of changes! But LGTM.

# Conflicts:
#	src/entities/addLiquidity/utils/validateInputs.ts
#	src/entities/exit/poolExit.ts
#	src/entities/join/poolJoin.ts
#	src/entities/removeLiquidity/utils/validateInputs.ts
@brunoguerios brunoguerios merged commit 31d244a into join Nov 14, 2023
3 of 4 checks passed
@brunoguerios brunoguerios deleted the refactor-join-interface branch November 14, 2023 17:46
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