feat(curve): add coins in static attributes (#205)

* feat(curve): add coins in static attributes

This will be used by tycho-execution when executing swaps on the pool. It is needed because the `exchange` function takes token indexes and not addresses as input.

* style: make clippy happy with `format!`

---------

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
This commit is contained in:
Zizou
2025-05-13 18:57:06 +02:00
committed by GitHub
parent 2a77cf965c
commit 62b178ad8f
6 changed files with 78 additions and 23 deletions

View File

@@ -51,7 +51,7 @@ def encode_json_to_query_params(params: list[dict[str, Any]]):
f"Index `{i}` object missing parameters.\n\n" + err.args[0]
)
return ",".join(encoded_params)
return "#".join(encoded_params)
def main():