-
Notifications
You must be signed in to change notification settings - Fork 79
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
fix: enables unlock and withdrawal from Lockdrop accounts #1279
Conversation
Visit the preview URL for this PR (updated for commit 5ef13a0): https://astar-apps--pr1279-fix-lockdrop-unlock-j2jm6u4w.web.app (expires Tue, 14 May 2024 15:42:20 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: dd76fe72958fe2910fef9d53f0b4539b82b849db |
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.
I would like to suggest a bit different approach which doesn't change existing codebase that much and it will be easier to clean up later when we stop supporting lockdrop accounts.
I don't think you need to modify dapp staking repository and service since logic you need is implemented in DappStakingServiceV2Ledger
.
Just change useDappStaking
to make call to a proper service based on isLockdropAccount
You will also need to introduce DappStakingServiceV2Ledger
for EVM.
Thanks, @bobo-k2 |
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
useChainMetadata, | ||
useNetworkInfo, | ||
useLedger, | ||
ETHEREUM_EXTENSION, |
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.
I think exporting constant in hooks is not a good way, I think moving ETHEREUM_EXTENSION
to another files like src/constants/~~
but I want to know what you thinking about it
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.
You are right. Please refer to this commit.
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! Thank you!
* add native bridge deposit warning banner (#1275) * add native bridge deposit warning banner * update warning text on native bridge * disable desposit button on bridge * update i18n warning variable naming * Revert "add native bridge deposit warning banner (#1275)" (#1276) * fix: enables unlock and withdrawal from Lockdrop accounts (#1279) * feat: updated unlock logic * fix: updated dApp staking logic for Lockdrop accounts * Revert "fix: updated dApp staking logic for Lockdrop accounts" This reverts commit 0c00f9c. * Revert "feat: updated unlock logic" This reverts commit 4a38747. * fix: simlifize the logic * fix: moved variable for ETHEREUM_EXTENSION * update withdrawal warning 20h -> 5h (#1284) * fix: updating lockdrop contract address for Shiden (#1285) --------- Co-authored-by: Alan <tae.gun7784@gmail.com> Co-authored-by: Bobo <bobo.kovacevic@gmail.com>
Pull Request Summary
Check list
This pull request makes the following changes: