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

(operate) feat: Add column for how much xdai needed in staking contracts page #94

Merged
merged 9 commits into from
Sep 3, 2024

Conversation

mohandast52
Copy link
Collaborator

@mohandast52 mohandast52 commented Sep 2, 2024

Proposed changes

  • Added a "Minimum Operating Balance Required" column
  • updated a few styles.
Screenshot

Fixes

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@mohandast52 mohandast52 added the enhancement New feature or request label Sep 2, 2024
@mohandast52 mohandast52 self-assigned this Sep 2, 2024
Copy link

vercel bot commented Sep 2, 2024

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

Name Status Preview Comments Updated (UTC)
bond 🛑 Canceled (Inspect) Sep 3, 2024 1:37pm
govern 🛑 Canceled (Inspect) Sep 3, 2024 1:37pm
launch 🛑 Canceled (Inspect) Sep 3, 2024 1:37pm
operate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 1:37pm
registry 🛑 Canceled (Inspect) Sep 3, 2024 1:37pm
tokenomics 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 1:37pm

@mohandast52 mohandast52 changed the title (WIP) feat: Add column for how much xdai needed in staking contracts page (operate) feat: Add column for how much xdai needed in staking contracts page Sep 3, 2024
@vercel vercel bot temporarily deployed to Preview – bond September 3, 2024 12:05 Inactive
@vercel vercel bot temporarily deployed to Preview – govern September 3, 2024 12:05 Inactive
@truemiller
Copy link
Collaborator

truemiller commented Sep 3, 2024

Just be mindful of CoinGecko rate limits as this list grows longer, can probably cache some requests if it becomes a problem, or reuse values

CoinGecko free plan request limits are pretty stingy

@mohandast52
Copy link
Collaborator Author

@truemiller Agreed, I thought of caching as well. Since there's only one per page, it should be fine IMO, but I'll work on finding a better solution.

apps/operate/components/Contracts/hooks.ts Outdated Show resolved Hide resolved
apps/operate/components/Contracts/index.tsx Outdated Show resolved Hide resolved
apps/operate/components/Contracts/index.tsx Outdated Show resolved Hide resolved
apps/operate/components/Contracts/index.tsx Outdated Show resolved Hide resolved
apps/operate/components/Contracts/index.tsx Outdated Show resolved Hide resolved
apps/operate/components/Contracts/index.tsx Show resolved Hide resolved
apps/operate/components/Contracts/index.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@Tanya-atatakai Tanya-atatakai left a comment

Choose a reason for hiding this comment

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

small comments, lgtm overall!

@mohandast52 mohandast52 merged commit 21b8a9f into main Sep 3, 2024
4 of 9 checks passed
@mohandast52 mohandast52 deleted the mohan/operate-page-min-operating-balance branch September 3, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants