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

feat: Create Pool With Liquidity #70

Merged
merged 35 commits into from
Nov 13, 2024
Merged

Conversation

joemonem
Copy link
Contributor

@joemonem joemonem commented Oct 16, 2024

Pull Request

Description

Allows to create a pool with liquidity

Type of Change

  • Bug fix
  • [ x] New feature
  • Breaking change
  • Documentation update
  • Refactor/Chore

Related Issue

[Link to related issue, if applicable]

Testing

Integration test using cw-orch in factory.rs

Checklist

  • Self-review completed
  • [x ] Tests added/updated (if applicable)
  • Documentation updated (if applicable)

Screenshots (if applicable)

[Add screenshots here]

Additional Notes

Still a work in progress

@joemonem joemonem requested a review from SlayerAnsh October 16, 2024 13:41
contracts/hub/router/src/ibc/receive.rs Show resolved Hide resolved
contracts/hub/router/src/reply.rs Outdated Show resolved Hide resolved
contracts/hub/vlp/src/execute.rs Show resolved Hide resolved
funds: vec![],
label: "escrow".to_string(),
});
PENDING_DEPOSIT_TOKEN.save(deps.storage, token.clone().token, &token)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we update our escrow contract instatiate msg to receive funds during instantiate? Note - If we use this approach, it should be able to use both native and cw20 funds

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about this but wasn't sure how to handle cw20 funds

Copy link
Contributor

Choose a reason for hiding this comment

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

We can try Instantiate2, let discuss this and implement it in another PR

Copy link
Contributor

@SlayerAnsh SlayerAnsh left a comment

Choose a reason for hiding this comment

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

Changes requested for core logic. Review for testing is in progress.

@joemonem joemonem requested a review from SlayerAnsh November 11, 2024 14:36
Copy link
Contributor

@SlayerAnsh SlayerAnsh left a comment

Choose a reason for hiding this comment

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

LGTM!

Future Updates

  • Remove Request Pool With funds code

@SlayerAnsh SlayerAnsh merged commit 07ae947 into development Nov 13, 2024
2 checks passed
@SlayerAnsh SlayerAnsh deleted the create-pool-with-liquidity branch November 13, 2024 04:13
@joemonem joemonem mentioned this pull request Nov 13, 2024
6 tasks
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.

2 participants