Skip to content

feat(Staking): refactor#1538

Merged
tomjeatt merged 16 commits intomasterfrom
rui/refactor-staking-page
Nov 6, 2023
Merged

feat(Staking): refactor#1538
tomjeatt merged 16 commits intomasterfrom
rui/refactor-staking-page

Conversation

@danielsimao
Copy link
Copy Markdown
Member

@danielsimao danielsimao commented Aug 23, 2023

Interbtc UI Pull Request Template

Description

Missing freeStakable

@danielsimao danielsimao linked an issue Aug 23, 2023 that may be closed by this pull request
@vercel
Copy link
Copy Markdown

vercel bot commented Aug 23, 2023

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

Name Status Preview Comments Updated (UTC)
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2023 11:58am
interbtc-ui-interlay-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2023 11:58am
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2023 11:58am
interbtc-ui-kintsugi-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2023 11:58am

@github-actions
Copy link
Copy Markdown

Running Lighthouse audit...

@danielsimao danielsimao force-pushed the rui/refactor-staking-page branch from 6845b47 to d0b8d8f Compare August 29, 2023 16:51
Copy link
Copy Markdown
Collaborator

@tomjeatt tomjeatt left a comment

Choose a reason for hiding this comment

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

Looks good—couple of very minor comments, not blockers. I would hold off on merging until Interlay testnet is upgraded though, so that we can test on both testnets.

@tomjeatt
Copy link
Copy Markdown
Collaborator

There's a bug with this release—if a user is connected with an account that has an staking balance, the application crashes:

TypeError: window.bridge.api.rpc.escrow.freeStakable is not a function
    at l (use-get-account-staking-data.tsx:52:53)

@peterslany could you have a look at this? I think it's related to the bug fix for reward estimation.

@peterslany
Copy link
Copy Markdown
Contributor

There's a bug with this release—if a user is connected with an account that has an staking balance, the application crashes:

TypeError: window.bridge.api.rpc.escrow.freeStakable is not a function
    at l (use-get-account-staking-data.tsx:52:53)

@peterslany could you have a look at this? I think it's related to the bug fix for reward estimation.

@tomjeatt this issue is probably because the nodes UI uses are still runing old version where the freeStakable RPC call is not exposed

@tomjeatt
Copy link
Copy Markdown
Collaborator

tomjeatt commented Oct 30, 2023

@tomjeatt this issue is probably because the nodes UI uses are still runing old version where the freeStakable RPC call is not exposed

Thanks @peterslany—can you handle updating this? Would be great to get this wrapped up,

@peterslany
Copy link
Copy Markdown
Contributor

@tomjeatt this issue is probably because the nodes UI uses are still runing old version where the freeStakable RPC call is not exposed

Thanks @peterslany—can you handle updating this? Would be great to get this wrapped up,

@tomjeatt yes, can you please share more details in which environment the mentioned bug occurs? So that I can ask Nikolai to check the version of RPC node.

@tomjeatt
Copy link
Copy Markdown
Collaborator

tomjeatt commented Oct 30, 2023

@tomjeatt yes, can you please share more details in which environment the mentioned bug occurs? So that I can ask Nikolai to check the version of RPC node.

I've seen it in all environments—very easy to replicate, you need to connect an account which has an existing stake and you'll see the staking page crash.

Edit:
Although the error on Kintsugi testnet is different—Error: Cannot read properties of undefined (reading 'name').Please refresh.

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.

Refactor staking page

3 participants