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

Add stonfi v2 swaps, provide and withdraw liquidity actions support #94

Open
wants to merge 4 commits into
base: v1.1
Choose a base branch
from

Conversation

verdigos
Copy link
Collaborator

@verdigos verdigos commented Oct 8, 2024

No description provided.

@verdigos
Copy link
Collaborator Author

CREATE TYPE dex_withdraw_liquidity_details AS (
    dex VARCHAR,
    amount1 NUMERIC,
    amount2 NUMERIC,
    asset1_out VARCHAR,
    asset2_out VARCHAR,
    user_jetton_wallet_1 VARCHAR,
    user_jetton_wallet_2 VARCHAR,
    dex_jetton_wallet_1 VARCHAR,
    dex_jetton_wallet_2 VARCHAR,
    lp_tokens_burned NUMERIC
);

-- Create custom type for dex_deposit_liquidity_details
CREATE TYPE dex_deposit_liquidity_details AS (
    dex VARCHAR,
    amount1 NUMERIC,
    amount2 NUMERIC,
    asset1 VARCHAR,
    asset2 VARCHAR,
    user_jetton_wallet_1 VARCHAR,
    user_jetton_wallet_2 VARCHAR,
    lp_tokens_minted NUMERIC
);
alter table public.actions
    add dex_withdraw_liquidity_data dex_withdraw_liquidity_details;
alter table public.actions
    add dex_deposit_liquidity_data dex_deposit_liquidity_details;

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.

1 participant