-
Notifications
You must be signed in to change notification settings - Fork 37
Feat : Add CowAMM Adapter and substreams #191
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
base: main
Are you sure you want to change the base?
Feat : Add CowAMM Adapter and substreams #191
Conversation
zizou0x
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the SwapAdapter and added some comments, also please be more careful with formatting and whitespaces, you can find some examples in others SwapAdapter like AngleAdapter
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| - | - | Generic High Entropy Secret | 05747f2 | substreams/ethereum-cowamm/src/modules/3_map_cowpools.rs | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
ed36e78 to
5dc4716
Compare
e989a06 to
99dcc13
Compare
5aa3bec to
a7957ca
Compare
…nifest, added LP testing methods to swap adapter
…or result of superfluous token swapped, added formulas to calcInGivenOut and calcOutGivenIn
… attributes from the map_components and the store_components - removed liquidity_a, liquidity_b and lp_token_supply from cowamm.proto and the rust bindings - removed logic to get the liquidity from the map_cowpool_binds module and the liquidity field in the store_cowpool_binds module - removed get_token_supply helper in src/modules/utils.rs - added logic to map_protocol_changes to create EntityChanges attributes from balance_deltas - refactored transfer.rs in events to use from and to variables
…, added Cargo.lock and Cargo.toml
… to deltas" This reverts commit cea004d.
- created custom protos - emit bind deltas during pool creation - combine map components and map_relative_balances to make map_components_and_balances - added tracking for arbitrary transfers to pool in transfer struct - balance indexing test for < 5000 blocks run perfectly
…data slicing - Removed comments from 2_store_cowpool_binds - Removed comments from integration_test.tycho.yaml - Modifed trade trait impl for BalanceEventTrait to handle GPV2 cowprotocol trade settlement deltas to pool properly - Updated 4_map_components_with_balances.rs to handle GPV2 cowprotocol trade settlement deltas on pool and removed comments
…xtracting contract changes in map_protocol_changes for etherum-cowamm -removed comments in map_cowpool_binds - modified extract_address to take a count argument
13bbc74 to
6f1fecb
Compare
Also rebuilds protobuf structs.
- updated substreams.yaml of other chains to the latest module format - uncommented LIDO from the state registry
No description provided.