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

feat: Add testing support for SwapAdapterV2 #144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kayibal
Copy link
Collaborator

@kayibal kayibal commented Feb 10, 2025

This adds testing only support for protocols that use SwapAdapterV2 see:

propeller-heads/tycho-protocol-sdk#154

Note

This does not add support for these protocols to tycho-simulation.

@@ -151,6 +151,8 @@ def decode_pool_state(
manual_updates = static_attributes.get(
"manual_updates", HexBytes("0x00")
) > HexBytes("0x00")
swap_adapter_version = static_attributes.get("swap_adapter_version", 1)
additional_swap_data = static_attributes.get("additional_swap_data", "")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is static?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I think it should be dynamic. Or we look on dynamic & static, in case it is static for a protocol?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants