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: ido-v2-sc #11148

Merged
merged 9 commits into from
Jan 17, 2025
Merged

feat: ido-v2-sc #11148

merged 9 commits into from
Jan 17, 2025

Conversation

ChefJerry
Copy link
Contributor

@ChefJerry ChefJerry commented Jan 17, 2025


PR-Codex overview

This PR focuses on enhancing the IDO (Initial DEX Offering) functionality by introducing support for multiple pools, improving user interactions, and refining the contract's ABI. It also adds error handling and updates the structure of various hooks to accommodate the changes.

Detailed summary

  • Updated ido address for ChainId.BSC_TESTNET to use getTestIdoAddress().
  • Introduced getTestIdoAddress() function for dynamic address retrieval.
  • Modified useIDOUserInfo to return information for multiple pools.
  • Changed IDOAddresses type to support lpToken0 and lpToken1.
  • Updated useIDOCurrencies to handle multiple stake currencies.
  • Enhanced useIDOClaimCallback to accept a pool ID.
  • Updated useIDODepositCallback to accept a pool ID and validate deposit address.
  • Adjusted useIDOStatus to return statuses for multiple pools.
  • Updated useIdoPublicData to handle multiple pools and return their respective data.
  • Refined contract's ABI to support new functions and error events related to multiple pools.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Jan 17, 2025

⚠️ No Changeset found

Latest commit: abd6b4f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web ❌ Failed (Inspect) Jan 17, 2025 9:10am
7 Skipped Deployments
Name Status Preview Comments Updated (UTC)
aptos-web ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 9:10am
blog ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 9:10am
bridge ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 9:10am
games ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 9:10am
gamification ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 9:10am
uikit ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 9:10am
ton ⬜️ Skipped (Inspect) Jan 17, 2025 9:10am

@vercel vercel bot temporarily deployed to Preview – ton January 17, 2025 08:16 Inactive
@vercel vercel bot temporarily deployed to Preview – ton January 17, 2025 08:29 Inactive
@vercel vercel bot temporarily deployed to Preview – ton January 17, 2025 08:30 Inactive
@vercel vercel bot temporarily deployed to Preview – ton January 17, 2025 08:38 Inactive
@vercel vercel bot temporarily deployed to Preview – ton January 17, 2025 08:55 Inactive
@Chef-Yogi Chef-Yogi merged commit b921d32 into feat/ido Jan 17, 2025
17 of 19 checks passed
@Chef-Yogi Chef-Yogi deleted the feature/ido-v2-sc branch January 17, 2025 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants