Skip to content

feature: beanstalk-assets-route#409

Open
feyyazcigim wants to merge 7 commits intodevelopmentfrom
feature/beanstalk-assets-route
Open

feature: beanstalk-assets-route#409
feyyazcigim wants to merge 7 commits intodevelopmentfrom
feature/beanstalk-assets-route

Conversation

@feyyazcigim
Copy link
Contributor

No description provided.

@feyyazcigim feyyazcigim added the wip This issue or PR is under active development and may change frequently label Feb 4, 2026
@netlify
Copy link

netlify bot commented Feb 4, 2026

Deploy Preview for pintomoney ready!

Name Link
🔨 Latest commit eaf5465
🔍 Latest deploy log https://app.netlify.com/projects/pintomoney/deploys/69860bb835d51f0008e0b236
😎 Deploy Preview https://deploy-preview-409.preview.pinto.money
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@feyyazcigim feyyazcigim changed the title Feature/beanstalk assets route feature: beanstalk-assets-route Feb 4, 2026
address: protocolAddress,
abi: fieldGlobalAbi,
functionName: "totalPods",
args: [1n], // fieldId=1 for repayment field
Copy link
Contributor

Choose a reason for hiding this comment

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

create constant for this

Copy link
Contributor

Choose a reason for hiding this comment

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

@claude implement this please

Copy link
Contributor

@github-actions github-actions bot Feb 6, 2026

Choose a reason for hiding this comment

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

Claude finished @fr1jo's task in 2m 2s —— View job


Completed

Tasks

  • Read the file to understand what constant needs to be extracted
  • Identify appropriate location for the constant
  • Extract hardcoded value to constant
  • Run linting and formatting
  • Commit and push changes

Changes Made

  • Added BEANSTALK_REPAYMENT_FIELD_ID = 1n constant at the top of the file with other constants
  • Replaced hardcoded 1n on line 99 with the new constant
  • Committed and pushed to branch feature/beanstalk-assets-route

The hardcoded field ID has been successfully extracted to a named constant for better maintainability.

Note: I was unable to run the linting tools due to permission restrictions, but the code change follows the existing patterns in the file. The PR author or reviewers should run yarn format-and-lint before merging.

--- | Latest commit

Comment on lines 70 to 74
const URBDV_DECIMALS = 6;
// Token decimals for Pinto (6 decimals)
// const PINTO_DECIMALS = 6;
// Token decimals for sprouts
const SPROUTS_DECIMALS = 6;
Copy link
Contributor

Choose a reason for hiding this comment

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

in constants file or if erc20s, create token instances in tokens.ts

Copy link
Contributor

Choose a reason for hiding this comment

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

@claude please implement this

Copy link
Contributor

@github-actions github-actions bot Feb 6, 2026

Choose a reason for hiding this comment

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

Claude finished @fr1jo's task in 1m 44s —— View job


Completed

Tasks

  • Read the file to understand what needs to be extracted at line 74
  • Identify the token addresses/constants to extract
  • Determine appropriate location (tokens.ts vs constants file)
  • Create internal token definitions for urBDV and Sprouts in internalTokens.ts
  • Update useBeanstalkGlobalStats.ts to use the new token instances
  • Commit and push changes

Changes Made

Created internal token definitions for urBDV and Sprouts in src/constants/internalTokens.ts:

  • Added URBDV token (Unripe BDV, 6 decimals)
  • Added SPROUTS token (Sprouts, 6 decimals)

Updated src/state/useBeanstalkGlobalStats.ts:

  • Removed hardcoded URBDV_DECIMALS and SPROUTS_DECIMALS constants
  • Updated imports to include URBDV and SPROUTS from internalTokens
  • Changed all TokenValue.fromBlockchain() calls to use URBDV.decimals and SPROUTS.decimals instead of hardcoded values

This follows the same pattern used for other internal tokens (PODS, STALK, SEEDS) and makes the code more maintainable.

Note: I was unable to run yarn format-and-lint due to permission restrictions. The PR author or reviewers should run this command before merging to ensure code formatting is consistent.

--- | Latest commit |

Comment on lines 22 to 28
<a
href="https://docs.pinto.money/appendix/old-beanstalk-holders"
target="_blank"
rel="noopener noreferrer"
className="text-pinto-green-4 hover:underline"
>
Learn more
Copy link
Contributor

Choose a reason for hiding this comment

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

do we have a link component for this?

Copy link
Contributor

Choose a reason for hiding this comment

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

i think we do. @claude please implement

Copy link
Contributor

@github-actions github-actions bot Feb 6, 2026

Choose a reason for hiding this comment

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

Claude finished @fr1jo's task in 1m 31s —— View job


Completed

Tasks

  • Read the Beanstalk.tsx file to see current implementation
  • Search for existing link components in the codebase
  • Replace plain anchor tag with Link component from react-router-dom
  • Commit and push changes

Changes Made

  • Added import for Link component from react-router-dom in src/pages/Beanstalk.tsx
  • Replaced the plain <a> tag (lines 22-29) with <Link> component
  • Changed href attribute to to attribute (the Link component's prop name)
  • Committed and pushed to branch feature/beanstalk-assets-route

The external link to the Pinto documentation now uses the standard Link component from react-router-dom, which is the pattern used throughout the codebase for external links with target="_blank".

Note: I was unable to run yarn format-and-lint due to permission restrictions. The PR author or reviewers should run this command before merging to ensure code formatting is consistent.

--- | Latest commit |

github-actions bot and others added 3 commits February 6, 2026 12:47
Extract hardcoded field ID value (1n) to BEANSTALK_REPAYMENT_FIELD_ID constant
for better code maintainability and readability.

Co-authored-by: frijo <fr1jo@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: frijo <fr1jo@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add URBDV and SPROUTS token definitions to internalTokens.ts
- Remove hardcoded URBDV_DECIMALS and SPROUTS_DECIMALS constants
- Update useBeanstalkGlobalStats to use token instances for decimals

Co-authored-by: frijo <fr1jo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wip This issue or PR is under active development and may change frequently

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants