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

Curve code added #7386

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

PatelPrinci
Copy link
Contributor

Thank you for contributing to Spellbook 🪄

Please open the PR in draft and mark as ready when you want to request a review.

Description:

[...]


quick links for more information:

@github-actions github-actions bot marked this pull request as draft December 26, 2024 09:03
@github-actions github-actions bot added WIP work in progress dbt: dex covers the DEX dbt subproject labels Dec 26, 2024
@PatelPrinci PatelPrinci marked this pull request as ready for review December 26, 2024 10:45
@github-actions github-actions bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Dec 26, 2024
Copy link
Collaborator

@Hosuke Hosuke left a comment

Choose a reason for hiding this comment

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

@0xRobin 0xRobin self-assigned this Dec 29, 2024
@@ -13,6 +13,7 @@ FROM (VALUES
('uniswap', 'Uniswap', 'Direct', 'Uniswap')
, ('pancakeswap', 'PancakeSwap', 'Direct', 'PancakeSwap')
, ('curve', 'Curve', 'Direct', 'CurveFinance')
, ('curvefi', 'Curve', 'Direct', 'CurveFinance')
Copy link
Collaborator

Choose a reason for hiding this comment

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

we've been using curve as the name for Curve Finance (See row above)


SELECT
'base' AS blockchain,
'curvefi' AS project,
Copy link
Collaborator

Choose a reason for hiding this comment

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

'curve' instead of 'curvefi'

Comment on lines +24 to +29
FROM
{{ source('curvefi_base', 'StableSwap_evt_TokenExchange') }}
{% if is_incremental() %}
WHERE
{{ incremental_predicate('evt_block_time') }}
{% endif %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this doesn't fully follow the current logic we have for Curve on other chains.
Is the deployment on base different then on other chains?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am thinking this too.
This implementation covers stable pool type swaps.

@0xRobin 0xRobin marked this pull request as draft December 29, 2024 10:18
@github-actions github-actions bot added WIP work in progress and removed ready-for-review this PR development is complete, please review labels Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dbt: dex covers the DEX dbt subproject WIP work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants