-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove "Staking" page #10
Conversation
Removed pages and Sidebar component entry
Removed DeauthorizeApplication modal Added temporary solution for StakingOverview widget
Removed staking related components, unused hooks and modals. Removed staking related store entries, provided temporary soliutions to prevent compilation errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took a quick look and left few comments. I will continue the review tomorrow so there might be more 😉
StakingProviderAppInfo, | ||
AuthorizationParameters, | ||
} from "../../threshold-ts/applications" | ||
import { AddressZero, MAX_UINT64 } from "../../threshold-ts/utils" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking:
I think that we should also remove everything related to staking from threshold-ts
lib. In the perfect world it would be best to have threshold-ts
as a separate lib (in separate repo) and use it in both project.
The threshold-ts
lib in this project is outdated already due to some changes that were made in Taco PR in the token-dashboard
, so we won't be able to keep those two the same. I would say that we should remove all unnecessary things from it in this PR, and just leave the things that are relatd to TBTC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I will address this in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments to look at before the merge.
Also, let's not forget to resolve conflicts with the main branch 😉
src/pages/Staking/StakeCard/StakeBalance/LegacyStakeBalances/BalanceTreeItem.tsx
Show resolved
Hide resolved
Removed unused dependencies
Removed unused dependencies and imports
Fixed comment typos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left few more comments to look at
src/pages/Staking/HowItWorks/StakingOverview/AuthorizingApplicationsCard.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🔥
import { useToken } from "../../hooks/useToken" | ||
import { tBTCFillBlack } from "../../static/icons/tBTCFillBlack" | ||
import { TokenBalanceProps } from "../TokenBalance" | ||
|
||
export type TokenBalanceCardProps = { | ||
token: Exclude<Token, Token.TBTC> | ||
token: Extract<Token, Token.TBTCV2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking:
Ideally we would not want to use Extract
here in case we add other tokens to the Token
anum. I will address that in a separate PR where I remove useFetchTvl
hook and get rid of other tokens. For now, let's keep it this way.
"Main" branch clean-up Ref: #1 Depends on: #7 #8 #10 #11 This pull request aggregates each partial clean-up PR (mentioned above). It's introduced to reduce complexity of merge conflicts and allow continuous work without blocking while waiting for partial PRs to be merged. Moreover it's a place for general cleanup commits that couldn't be addressed to any of the PRs.
Ref: #1
This pull request removes "Staking" page and related components.