Skip to content

Rename expectedBuyAmount to buyAmount#62

Merged
kevincheng96 merged 2 commits intomainfrom
kevin/swap-change
Aug 8, 2024
Merged

Rename expectedBuyAmount to buyAmount#62
kevincheng96 merged 2 commits intomainfrom
kevin/swap-change

Conversation

@kevincheng96
Copy link
Copy Markdown
Contributor

Since the swap functions can support both exact input and exact output swaps, the buy amount is not always an expected amount. It can be the actual buy amount in an exact output swap.

Copy link
Copy Markdown
Contributor

@hayesgm hayesgm left a comment

Choose a reason for hiding this comment

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

looks good-- curious how many places we need to change code to match this 😢

@kevincheng96
Copy link
Copy Markdown
Contributor Author

looks good-- curious how many places we need to change code to match this 😢

It should only require a client-level change. We don't touch the action context here.

@hayesgm
Copy link
Copy Markdown
Contributor

hayesgm commented Aug 7, 2024

Yeah, though in both Elixir and Swift now. Well, let's see it out, a small change should be an easier one to understand.

@kevincheng96 kevincheng96 merged commit 303a237 into main Aug 8, 2024
@kevincheng96 kevincheng96 deleted the kevin/swap-change branch August 8, 2024 06:51
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