-
Notifications
You must be signed in to change notification settings - Fork 39
fluid-substreams #174
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?
fluid-substreams #174
Conversation
| component_changes: vec![ProtocolComponent { | ||
| id: event.dex.to_hex(), | ||
| tokens: vec![], | ||
| contracts: vec![], |
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.
Need to set contracts addresses here that are required to simulate a swap.
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.
will update this once i confirm the address
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.
so the dex address?
or also our DexReservesResolver where we call the estimateSwapIn method? (see getPriceAt)
or the full set of contracts that can be involved, so also our liquidity layer and extensions of it?
| name: "fluid_dex_pool".to_string(), | ||
| financial_type: FinancialType::Swap.into(), | ||
| attribute_schema: vec![], | ||
| implementation_type: ImplementationType::Custom.into(), |
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.
This should be `ImplementationType::VM'
| |addr| { | ||
| // we assume that the store holds contract addresses as keys and if it | ||
| // contains a value, that contract is of relevance. | ||
| // TODO: if you have any additional static contracts that need to be indexed, |
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.
I think we do have some static contracts that we need to include here like the liquidity layer?
evm/src/fluid/FluidAdapter.sol
Outdated
| return trade; | ||
| } | ||
|
|
||
| event logInner(string, uint256); |
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.
unused?
Can't use impl_ as variable name.
No description provided.