Skip to content

Gdprice sdk v1#597

Merged
sirpy merged 4 commits into
masterfrom
gdprice-sdk-v1
May 22, 2025
Merged

Gdprice sdk v1#597
sirpy merged 4 commits into
masterfrom
gdprice-sdk-v1

Conversation

@sirpy

@sirpy sirpy commented May 22, 2025

Copy link
Copy Markdown
Contributor

Description

Pass down the gdprice from the new celo reserve

Description by Korbit AI

What change is being made?

Upgrade the @gooddollar/web3sdk to version 0.1.50, @gooddollar/web3sdk-v2 to version 0.4.13, switch the default CELO RPC endpoint from 'https://rpc.ankr.com/celo' to 'https://forno.celo.org', and integrate useG$Price within the portfolio page.

Why are these changes being made?

The SDK versions needed to be updated to incorporate the latest fixes and features. Switching to 'https://forno.celo.org' provides a more reliable CELO RPC provider, addressing previous connectivity issues. The addition of useG$Price into the portfolio is to dynamically fetch and utilize the current GoodDollar price, enhancing the application's functionality and user experience.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

@sirpy sirpy requested a review from L03TJ3 May 22, 2025 10:02

@korbit-ai korbit-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Functionality Reintroduction of problematic RPC endpoint ▹ view
Files scanned
File Path Reviewed
src/hooks/useWeb3.tsx
src/pages/gd/Swap/SwapCelo/UniSwap.tsx
src/connectors/index.ts
src/pages/gd/Portfolio/index.tsx

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

Comment thread src/pages/gd/Swap/SwapCelo/UniSwap.tsx

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey @sirpy - I've reviewed your changes - here's some feedback:

  • The file:.yalc override for @gooddollar/web3sdk isn’t a published version—please revert this before merging or switch to the proper package version.
  • Adding gdPrice to the usePromise dependency list will re‐fetch on every price tick—ensure this is intended or consider debouncing/memoizing to avoid excessive calls.
  • The UniSwap Celo RPC change uses forno despite the existing comment about gas issues—either validate this endpoint’s reliability or update/remove the stale comment.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

42220: [
// 'https://forno.celo.org', // forno is causing gas issues with uniswap
'https://rpc.ankr.com/celo',
'https://forno.celo.org',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

issue: Outdated comment about forno causing gas issues remains

Please update or remove the outdated comment referencing gas issues with forno, as it no longer reflects the current implementation.

@L03TJ3 L03TJ3 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just update to latest sdk-v1 once that PR is merged

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 22, 2025

Copy link
Copy Markdown

Deploying goodprotocolui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7518da6
Status:⚡️  Build in progress...

View logs

@sirpy sirpy merged commit 2c84763 into master May 22, 2025
3 of 4 checks passed
@sirpy sirpy deleted the gdprice-sdk-v1 branch May 22, 2025 19:28
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