Skip to content

Conversation

nidhi-singh02
Copy link
Contributor

@nidhi-singh02 nidhi-singh02 commented Sep 17, 2025

Summary

  • Reward calculator similar to how we have in the documentation.
  • Image import and keeping image colocated to where they are used.

Rationale

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Copy link

vercel bot commented Sep 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
component-library Ready Ready Preview Comment Sep 18, 2025 2:35pm
developer-hub Ready Ready Preview Comment Sep 18, 2025 2:35pm
entropy-explorer Ready Ready Preview Comment Sep 18, 2025 2:35pm
insights Ready Ready Preview Comment Sep 18, 2025 2:35pm
3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
api-reference Skipped Skipped Sep 18, 2025 2:35pm
proposals Skipped Skipped Sep 18, 2025 2:35pm
staking Skipped Skipped Sep 18, 2025 2:35pm

Comment on lines 25 to 36
const RewardSimulator: React.FC = () => {
const [publisherStake, setPublisherStake] = useState(200);
const [delegatorStake, setDelegatorStake] = useState(300);
const [maxCap, setMaxCap] = useState(500);
const [delegatorFee, setDelegatorFee] = useState(20);
const [rewardRate, setRewardRate] = useState(10);

const [publisherReward, setPublisherReward] = useState(0);
const [delegatorReward, setDelegatorReward] = useState(0);
const [publisherRewardRate, setPublisherRewardRate] = useState(0);
const [delegatorRewardRate, setDelegatorRewardRate] = useState(0);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this file is referred from the reward simulator of the documentation.

Comment on lines +9 to +14
import OISSlashingInvestigationDark from "./images/ois_slashing_investigation_dark.png";
import OISSlashingInvestigationLight from "./images/ois_slashing_investigation_light.png";
import OISSlashingPoolPreDark from "./images/ois_slashing_pool_pre_dark.png";
import OISSlashingPoolPreLight from "./images/ois_slashing_pool_pre_light.png";
import OISSlashingPoolPostDark from "./images/ois_slashing_pool_post_dark.png";
import OISSlashingPoolPostLight from "./images/ois_slashing_pool_post_light.png";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

using image import and moved the images from the public folder inside the folder where they are used.

@vercel vercel bot temporarily deployed to Preview – api-reference September 17, 2025 14:37 Inactive
@vercel vercel bot temporarily deployed to Preview – entropy-explorer September 17, 2025 14:37 Inactive
@vercel vercel bot temporarily deployed to Preview – insights September 17, 2025 14:37 Inactive
@vercel vercel bot temporarily deployed to Preview – staking September 17, 2025 14:37 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals September 17, 2025 14:37 Inactive
Copy link
Collaborator

@cprussin cprussin left a comment

Choose a reason for hiding this comment

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

Most important change is to remove the misuse of effects

alexcambose
alexcambose previously approved these changes Sep 18, 2025
This reverts commit 84350cc.
Comment on lines +33 to +46
$font-family: (
"monospace": (
"ui-monospace",
"sfmono-regular",
"consolas",
"Liberation Mono",
"menlo",
"monospace",
),
);

@function font-family($family) {
@return map-get-strict($font-family, $family);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is great but at some point we should probably have a specific font we ship for mono text, cc @partyparrotgreg not sure if you already have one in mind

@nidhi-singh02 nidhi-singh02 merged commit fa07482 into main Sep 18, 2025
10 checks passed
@nidhi-singh02 nidhi-singh02 deleted the reward-cal branch September 18, 2025 14:44
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.

3 participants