Skip to content

Conversation

@SamarendraGouda
Copy link

No description provided.

component_changes: vec![ProtocolComponent {
id: event.dex.to_hex(),
tokens: vec![],
contracts: vec![],
Copy link
Contributor

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.

Copy link
Author

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

Copy link

@bergben bergben Mar 11, 2025

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(),
Copy link
Contributor

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,
Copy link
Contributor

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?

return trade;
}

event logInner(string, uint256);
Copy link

@bergben bergben Mar 11, 2025

Choose a reason for hiding this comment

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

unused?

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.

3 participants