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

Update staking layout #244

Merged
merged 11 commits into from Nov 28, 2023
Merged

Update staking layout #244

merged 11 commits into from Nov 28, 2023

Conversation

JustinBeBoy
Copy link
Collaborator

This PR resolve #212

This PR:

  • Update new Staking info section UI
  • Add Statistics section layout to staking page
  • Update Tickets layout
  • Clean code

ScreenShot

image

Copy link
Collaborator

@itswisdomagain itswisdomagain left a comment

Choose a reason for hiding this comment

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

First pass. Will go again after these.

ui/assets/decredicons/ticket_immature.png Outdated Show resolved Hide resolved
ui/cryptomaterial/progressbar.go Outdated Show resolved Hide resolved
ui/page/components/coinformat.go Outdated Show resolved Hide resolved
ui/page/components/utils.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@itswisdomagain itswisdomagain 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 overall.

ui/cryptomaterial/progressbar.go Outdated Show resolved Hide resolved
ui/values/strings.go Outdated Show resolved Hide resolved
ui/page/components/utils.go Outdated Show resolved Hide resolved
ui/page/components/utils.go Outdated Show resolved Hide resolved
ui/page/staking/stake_info.go Outdated Show resolved Hide resolved
ui/page/staking/stake_info.go Show resolved Hide resolved
ui/page/staking/stake_info.go Outdated Show resolved Hide resolved
ui/page/staking/stake_overview.go Outdated Show resolved Hide resolved
ui/page/staking/stake_statics.go Outdated Show resolved Hide resolved
ui/page/staking/stake_statics.go Outdated Show resolved Hide resolved
@dreacot
Copy link
Member

dreacot commented Nov 16, 2023

the entire page should have a scroll bar.

also does the reward seem correct? considering the total voted tickets(this is testnet)

Screenshot from 2023-11-15 21-26-40

even when i expand the page there isn't enough bottom margin

Screenshot from 2023-11-15 21-28-57

@dreacot
Copy link
Member

dreacot commented Nov 16, 2023

going to the staking menu for a wallet that hasn't been synced causes the app to crash

panic: runtime error: slice bounds out of range [:-1]

goroutine 191 [running]:
github.com/crypto-power/cryptopower/ui/page/components.formatBalance({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/coinformat.go:46 +0x63b
github.com/crypto-power/cryptopower/ui/page/components.LayoutBalanceSemiBold(...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/coinformat.go:138
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1.2.1({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:87 +0x17a
gioui.org/layout.Direction.Layout(0x8, {{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1.2({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:80 +0xc5
gioui.org/layout.Flex.Layout({0x0?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1({{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:73 +0x254
gioui.org/layout.Flex.Layout({0x18?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1({{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:71 +0x215
gioui.org/layout.Flex.Layout({0x2?, 0x0?, 0x0?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1({{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:113 +0x257
gioui.org/layout.Inset.Layout({0x6b4e3f0?, 0xc0?, 0xcf?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1({{{0x1f6, 0x0}, {0x1f6, 0x19f}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:68 +0x89
gioui.org/layout.Flex.Layout({0xfd?, 0x1?, 0x0?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1({{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:63 +0x255
gioui.org/layout.Inset.Layout({0xb9?, 0x0?, 0x400c?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections.func1.1({{{0x226, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:245 +0x6a
gioui.org/layout.Stack.Layout({0x7f?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.Card.Layout.func1({{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/card.go:64 +0x18e
gioui.org/layout.Inset.Layout({0x16a2960?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.Card.Layout({{0x0, 0x0, 0x0, 0x0}, {0xff, 0xff, 0xff, 0xff}, {0xf3, 0xf5, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/card.go:63 +0x10b
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections.func1({{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:243 +0x185
gioui.org/layout.Inset.Layout({0x0?, 0x0?, 0x13c72d0?, 0xc0?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections(0x0?, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:242 +0xa9
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection(0xc001666000, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:62 +0x9e
gioui.org/layout.Flex.Layout({0x2?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).layoutDesktop(0xc001666000, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:209 +0x298
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).Layout.func3({{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:200 +0x105
gioui.org/layout.Stack.Layout({0xb0?}, {{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).Layout(0xc001666000, {{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:203 +0x36e
github.com/crypto-power/cryptopower/ui/page/components.DisablePageWithOverlay.func1({{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/components.go:951 +0x7d
gioui.org/layout.Stack.Layout({0x3b?}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/components.DisablePageWithOverlay(0xc0045bd380, {0x200b200?, 0xc001666000}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/components.go:945 +0x24d
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1.1.1({{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:383 +0x2ee
gioui.org/layout.Flex.Layout({0x42?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13c96b0?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x226, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x576d13?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0x226, 0xffffffffffffffff, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1.1({{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:372 +0x2ac
gioui.org/layout.Flex.Layout({0xb?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13cb610?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x320, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x58ca00?, 0xc0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0xfffffffffffffffe, 0xfffffffffffffffe, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:363 +0x20b
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop(0xc005292dc0, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:356 +0x12b
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).Layout(0x0?, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:352 +0x58
gioui.org/layout.Flex.Layout({0x5?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:134 +0x738
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13cdb68?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x320, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x576d13?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0xfffffffffffffffe, 0xfffffffffffffffe, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).layoutDesktop.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:373 +0x24b
gioui.org/layout.Stack.Layout({0x10?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).layoutDesktop(0xc00166c000, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:367 +0x12b
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).Layout(0xc00166c000, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:363 +0x105
github.com/crypto-power/cryptopower/ui.(*Window).prepareToDisplayUI.func2({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:286 +0x122
gioui.org/layout.Stack.Layout({0xf0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui.(*Window).prepareToDisplayUI(0xc003f12280, {{0xc14d84d0fac1bc3b, 0x7618795cea, 0x2f2a680}, {0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:301 +0x40d
github.com/crypto-power/cryptopower/ui.(*Window).handleFrameEvent(0xc003f12280, {{0xc14d84d0fac1bc3b, 0x7618795cea, 0x2f2a680}, {0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:239 +0x225
github.com/crypto-power/cryptopower/ui.(*Window).HandleEvents(0xc003f12280)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:204 +0x2b9
main.main.func3()
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/main.go:109 +0x1d
created by main.main
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/main.go:107 +0x51d
exit status 2

@JustinBeBoy
Copy link
Collaborator Author

also does the reward seem correct? considering the total voted tickets(this is testnet)

I just update only layout, but I thinks it correct

@JustinBeBoy
Copy link
Collaborator Author

the entire page should have a scroll bar.

also does the reward seem correct? considering the total voted tickets(this is testnet)

Screenshot from 2023-11-15 21-26-40

even when i expand the page there isn't enough bottom margin

Screenshot from 2023-11-15 21-28-57

It done @dreacot

@JustinBeBoy
Copy link
Collaborator Author

going to the staking menu for a wallet that hasn't been clicked causes the app to crash

panic: runtime error: slice bounds out of range [:-1]

goroutine 191 [running]:
github.com/crypto-power/cryptopower/ui/page/components.formatBalance({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/coinformat.go:46 +0x63b
github.com/crypto-power/cryptopower/ui/page/components.LayoutBalanceSemiBold(...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/coinformat.go:138
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1.2.1({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:87 +0x17a
gioui.org/layout.Direction.Layout(0x8, {{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1.2({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:80 +0xc5
gioui.org/layout.Flex.Layout({0x0?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1({{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:73 +0x254
gioui.org/layout.Flex.Layout({0x18?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1({{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:71 +0x215
gioui.org/layout.Flex.Layout({0x2?, 0x0?, 0x0?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1({{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:113 +0x257
gioui.org/layout.Inset.Layout({0x6b4e3f0?, 0xc0?, 0xcf?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1({{{0x1f6, 0x0}, {0x1f6, 0x19f}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:68 +0x89
gioui.org/layout.Flex.Layout({0xfd?, 0x1?, 0x0?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1({{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:63 +0x255
gioui.org/layout.Inset.Layout({0xb9?, 0x0?, 0x400c?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections.func1.1({{{0x226, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:245 +0x6a
gioui.org/layout.Stack.Layout({0x7f?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.Card.Layout.func1({{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/card.go:64 +0x18e
gioui.org/layout.Inset.Layout({0x16a2960?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.Card.Layout({{0x0, 0x0, 0x0, 0x0}, {0xff, 0xff, 0xff, 0xff}, {0xf3, 0xf5, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/card.go:63 +0x10b
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections.func1({{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:243 +0x185
gioui.org/layout.Inset.Layout({0x0?, 0x0?, 0x13c72d0?, 0xc0?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections(0x0?, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:242 +0xa9
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection(0xc001666000, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:62 +0x9e
gioui.org/layout.Flex.Layout({0x2?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).layoutDesktop(0xc001666000, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:209 +0x298
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).Layout.func3({{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:200 +0x105
gioui.org/layout.Stack.Layout({0xb0?}, {{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).Layout(0xc001666000, {{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:203 +0x36e
github.com/crypto-power/cryptopower/ui/page/components.DisablePageWithOverlay.func1({{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/components.go:951 +0x7d
gioui.org/layout.Stack.Layout({0x3b?}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/components.DisablePageWithOverlay(0xc0045bd380, {0x200b200?, 0xc001666000}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/components.go:945 +0x24d
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1.1.1({{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:383 +0x2ee
gioui.org/layout.Flex.Layout({0x42?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13c96b0?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x226, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x576d13?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0x226, 0xffffffffffffffff, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1.1({{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:372 +0x2ac
gioui.org/layout.Flex.Layout({0xb?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13cb610?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x320, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x58ca00?, 0xc0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0xfffffffffffffffe, 0xfffffffffffffffe, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:363 +0x20b
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop(0xc005292dc0, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:356 +0x12b
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).Layout(0x0?, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:352 +0x58
gioui.org/layout.Flex.Layout({0x5?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:134 +0x738
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13cdb68?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x320, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x576d13?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0xfffffffffffffffe, 0xfffffffffffffffe, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).layoutDesktop.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:373 +0x24b
gioui.org/layout.Stack.Layout({0x10?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).layoutDesktop(0xc00166c000, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:367 +0x12b
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).Layout(0xc00166c000, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:363 +0x105
github.com/crypto-power/cryptopower/ui.(*Window).prepareToDisplayUI.func2({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:286 +0x122
gioui.org/layout.Stack.Layout({0xf0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui.(*Window).prepareToDisplayUI(0xc003f12280, {{0xc14d84d0fac1bc3b, 0x7618795cea, 0x2f2a680}, {0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:301 +0x40d
github.com/crypto-power/cryptopower/ui.(*Window).handleFrameEvent(0xc003f12280, {{0xc14d84d0fac1bc3b, 0x7618795cea, 0x2f2a680}, {0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:239 +0x225
github.com/crypto-power/cryptopower/ui.(*Window).HandleEvents(0xc003f12280)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:204 +0x2b9
main.main.func3()
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/main.go:109 +0x1d
created by main.main
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/main.go:107 +0x51d
exit status 2

Pleases give me more detail, I can't reproduce it

@dreacot
Copy link
Member

dreacot commented Nov 17, 2023

going to the staking menu for a wallet that hasn't been clicked causes the app to crash

panic: runtime error: slice bounds out of range [:-1]

goroutine 191 [running]:
github.com/crypto-power/cryptopower/ui/page/components.formatBalance({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/coinformat.go:46 +0x63b
github.com/crypto-power/cryptopower/ui/page/components.LayoutBalanceSemiBold(...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/coinformat.go:138
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1.2.1({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:87 +0x17a
gioui.org/layout.Direction.Layout(0x8, {{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1.2({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:80 +0xc5
gioui.org/layout.Flex.Layout({0x0?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1({{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:73 +0x254
gioui.org/layout.Flex.Layout({0x18?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1({{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:71 +0x215
gioui.org/layout.Flex.Layout({0x2?, 0x0?, 0x0?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1({{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:113 +0x257
gioui.org/layout.Inset.Layout({0x6b4e3f0?, 0xc0?, 0xcf?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1({{{0x1f6, 0x0}, {0x1f6, 0x19f}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:68 +0x89
gioui.org/layout.Flex.Layout({0xfd?, 0x1?, 0x0?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1({{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:63 +0x255
gioui.org/layout.Inset.Layout({0xb9?, 0x0?, 0x400c?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections.func1.1({{{0x226, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:245 +0x6a
gioui.org/layout.Stack.Layout({0x7f?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.Card.Layout.func1({{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/card.go:64 +0x18e
gioui.org/layout.Inset.Layout({0x16a2960?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.Card.Layout({{0x0, 0x0, 0x0, 0x0}, {0xff, 0xff, 0xff, 0xff}, {0xf3, 0xf5, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/card.go:63 +0x10b
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections.func1({{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:243 +0x185
gioui.org/layout.Inset.Layout({0x0?, 0x0?, 0x13c72d0?, 0xc0?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections(0x0?, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:242 +0xa9
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection(0xc001666000, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:62 +0x9e
gioui.org/layout.Flex.Layout({0x2?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).layoutDesktop(0xc001666000, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:209 +0x298
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).Layout.func3({{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:200 +0x105
gioui.org/layout.Stack.Layout({0xb0?}, {{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).Layout(0xc001666000, {{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:203 +0x36e
github.com/crypto-power/cryptopower/ui/page/components.DisablePageWithOverlay.func1({{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/components.go:951 +0x7d
gioui.org/layout.Stack.Layout({0x3b?}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/components.DisablePageWithOverlay(0xc0045bd380, {0x200b200?, 0xc001666000}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/components.go:945 +0x24d
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1.1.1({{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:383 +0x2ee
gioui.org/layout.Flex.Layout({0x42?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13c96b0?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x226, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x576d13?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0x226, 0xffffffffffffffff, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1.1({{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:372 +0x2ac
gioui.org/layout.Flex.Layout({0xb?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13cb610?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x320, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x58ca00?, 0xc0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0xfffffffffffffffe, 0xfffffffffffffffe, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:363 +0x20b
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop(0xc005292dc0, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:356 +0x12b
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).Layout(0x0?, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:352 +0x58
gioui.org/layout.Flex.Layout({0x5?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:134 +0x738
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13cdb68?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x320, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x576d13?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0xfffffffffffffffe, 0xfffffffffffffffe, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).layoutDesktop.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:373 +0x24b
gioui.org/layout.Stack.Layout({0x10?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).layoutDesktop(0xc00166c000, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:367 +0x12b
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).Layout(0xc00166c000, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:363 +0x105
github.com/crypto-power/cryptopower/ui.(*Window).prepareToDisplayUI.func2({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:286 +0x122
gioui.org/layout.Stack.Layout({0xf0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui.(*Window).prepareToDisplayUI(0xc003f12280, {{0xc14d84d0fac1bc3b, 0x7618795cea, 0x2f2a680}, {0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:301 +0x40d
github.com/crypto-power/cryptopower/ui.(*Window).handleFrameEvent(0xc003f12280, {{0xc14d84d0fac1bc3b, 0x7618795cea, 0x2f2a680}, {0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:239 +0x225
github.com/crypto-power/cryptopower/ui.(*Window).HandleEvents(0xc003f12280)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:204 +0x2b9
main.main.func3()
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/main.go:109 +0x1d
created by main.main
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/main.go:107 +0x51d
exit status 2

Pleases give me more detail, I can't reproduce it

Create a new wallet, don't sync it, click on staking menu

@JustinBeBoy
Copy link
Collaborator Author

going to the staking menu for a wallet that hasn't been clicked causes the app to crash

panic: runtime error: slice bounds out of range [:-1]

goroutine 191 [running]:
github.com/crypto-power/cryptopower/ui/page/components.formatBalance({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/coinformat.go:46 +0x63b
github.com/crypto-power/cryptopower/ui/page/components.LayoutBalanceSemiBold(...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/coinformat.go:138
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1.2.1({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:87 +0x17a
gioui.org/layout.Direction.Layout(0x8, {{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1.2({{{0x0, 0x0}, {0x1a1, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:80 +0xc5
gioui.org/layout.Flex.Layout({0x0?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1.1({{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:73 +0x254
gioui.org/layout.Flex.Layout({0x18?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1.1({{{0x0, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:71 +0x215
gioui.org/layout.Flex.Layout({0x2?, 0x0?, 0x0?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1.1({{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:113 +0x257
gioui.org/layout.Inset.Layout({0x6b4e3f0?, 0xc0?, 0xcf?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x194}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1.1({{{0x1f6, 0x0}, {0x1f6, 0x19f}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:68 +0x89
gioui.org/layout.Flex.Layout({0xfd?, 0x1?, 0x0?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection.func1({{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:63 +0x255
gioui.org/layout.Inset.Layout({0xb9?, 0x0?, 0x400c?, 0x0?}, {{{0x1f6, 0x0}, {0x1f6, 0x1d1}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections.func1.1({{{0x226, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:245 +0x6a
gioui.org/layout.Stack.Layout({0x7f?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.Card.Layout.func1({{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/card.go:64 +0x18e
gioui.org/layout.Inset.Layout({0x16a2960?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.Card.Layout({{0x0, 0x0, 0x0, 0x0}, {0xff, 0xff, 0xff, 0xff}, {0xf3, 0xf5, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/card.go:63 +0x10b
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections.func1({{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:243 +0x185
gioui.org/layout.Inset.Layout({0x0?, 0x0?, 0x13c72d0?, 0xc0?}, {{{0x0, 0x0}, {0x226, 0x201}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).pageSections(0x0?, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:242 +0xa9
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).stakePriceSection(0xc001666000, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_info.go:62 +0x9e
gioui.org/layout.Flex.Layout({0x2?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).layoutDesktop(0xc001666000, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:209 +0x298
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).Layout.func3({{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:200 +0x105
gioui.org/layout.Stack.Layout({0xb0?}, {{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/staking.(*Page).Layout(0xc001666000, {{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x0, 0x0}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/staking/stake_overview.go:203 +0x36e
github.com/crypto-power/cryptopower/ui/page/components.DisablePageWithOverlay.func1({{{0x226, 0x211}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/components.go:951 +0x7d
gioui.org/layout.Stack.Layout({0x3b?}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/components.DisablePageWithOverlay(0xc0045bd380, {0x200b200?, 0xc001666000}, {{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/components/components.go:945 +0x24d
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1.1.1({{{0x0, 0x0}, {0x226, 0x211}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:383 +0x2ee
gioui.org/layout.Flex.Layout({0x42?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13c96b0?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x226, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x226, 0x0}, {0x226, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x576d13?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x243}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0x226, 0xffffffffffffffff, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1.1({{{0x0, 0x0}, {0x320, 0x25f}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:372 +0x2ac
gioui.org/layout.Flex.Layout({0xb?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:99 +0x2d5
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13cb610?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x320, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x58ca00?, 0xc0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0xfffffffffffffffe, 0xfffffffffffffffe, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:363 +0x20b
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).layoutDesktop(0xc005292dc0, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:356 +0x12b
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).Layout(0x0?, {{{0x0, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/main_page.go:352 +0x58
gioui.org/layout.Flex.Layout({0x5?, 0x0?, 0x0?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/flex.go:134 +0x738
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:88 +0x85
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:87 +0xe5
gioui.org/layout.Inset.Layout({0x13cdb68?, 0xc0?, 0x6b3f57?, 0x0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2.1({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:85 +0x109
github.com/crypto-power/cryptopower/ui/cryptomaterial.Border.Layout({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, 0x0}, {{{0x320, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/border.go:21 +0x98
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1.2({{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:83 +0x1d6
gioui.org/layout.Stack.Layout({0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:46 +0x2aa
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1.1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:105 +0x238
gioui.org/layout.Inset.Layout({0x47a607?, 0x0?, 0x576d13?, 0x0?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:169 +0x39d
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:44 +0x109
gioui.org/layout.Direction.Layout(0x0, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/layout.go:196 +0x162
github.com/crypto-power/cryptopower/ui/cryptomaterial.LinearLayout.Layout({0xfffffffffffffffe, 0xfffffffffffffffe, 0x1, {0x0, 0x0, 0x0, 0x0}, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/cryptomaterial/linearlayout.go:42 +0xe5
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).layoutDesktop.func1({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:373 +0x24b
gioui.org/layout.Stack.Layout({0x10?}, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:78 +0x498
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).layoutDesktop(0xc00166c000, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:367 +0x12b
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).Layout(0xc00166c000, {{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/page/root/home_page.go:363 +0x105
github.com/crypto-power/cryptopower/ui.(*Window).prepareToDisplayUI.func2({{{0x0, 0x0}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, 0x7618795cea, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:286 +0x122
gioui.org/layout.Stack.Layout({0xf0?}, {{{0x320, 0x28a}, {0x320, 0x28a}}, {0x3f800000, 0x3f800000}, {0x1ffc5e0, 0xc0042ea0c8}, {0xc14d84d0fac1bc3b, ...}, ...}, ...)
        /home/kennedy/Projects/pkg/mod/gioui.org@v0.1.0/layout/stack.go:60 +0x195
github.com/crypto-power/cryptopower/ui.(*Window).prepareToDisplayUI(0xc003f12280, {{0xc14d84d0fac1bc3b, 0x7618795cea, 0x2f2a680}, {0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:301 +0x40d
github.com/crypto-power/cryptopower/ui.(*Window).handleFrameEvent(0xc003f12280, {{0xc14d84d0fac1bc3b, 0x7618795cea, 0x2f2a680}, {0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:239 +0x225
github.com/crypto-power/cryptopower/ui.(*Window).HandleEvents(0xc003f12280)
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/ui/window.go:204 +0x2b9
main.main.func3()
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/main.go:109 +0x1d
created by main.main
        /home/kennedy/Projects/src/github.com/cryptopower/cryptopower/main.go:107 +0x51d
exit status 2

Pleases give me more detail, I can't reproduce it

Create a new wallet, don't sync it, click on staking menu

fixed

@Sirmorrison
Copy link
Collaborator

The codes LGTM.

Copy link
Member

@dreacot dreacot left a comment

Choose a reason for hiding this comment

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

there is a missing divider line on he staking info section

Screenshot from 2023-11-22 17-09-07

Screenshot from 2023-11-22 17-09-19

ui/page/staking/stake_info.go Outdated Show resolved Hide resolved
ui/page/staking/stake_statics.go Outdated Show resolved Hide resolved
ui/page/components/utils.go Outdated Show resolved Hide resolved
ui/page/staking/stake_overview.go Show resolved Hide resolved
ui/page/staking/stake_overview.go Outdated Show resolved Hide resolved
ui/values/localizable/en.go Outdated Show resolved Hide resolved
@dreacot
Copy link
Member

dreacot commented Nov 23, 2023

the divider can be removed in watch only wallets

Screenshot from 2023-11-23 11-51-00

@dreacot
Copy link
Member

dreacot commented Nov 27, 2023

fix conflicts

ui/values/dimensions.go Outdated Show resolved Hide resolved
ui/page/staking/stake_overview.go Show resolved Hide resolved
Copy link
Collaborator

@itswisdomagain itswisdomagain left a comment

Choose a reason for hiding this comment

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

Approved, pending @Sirmorrison's comment on one of the changes here.

return formatBalance(gtx, l, amount, mainTextSize, .85, l.Theme.Color.PageNavText, true, true)
return formatBalance(gtx, l, amount, mainTextSize, l.Theme.Color.PageNavText, true, true)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The default scale is .7, but this guy was using .85. I see that this LayoutBalanceWithUnitSizeBoldText was added by @Sirmorrison in #247. Let's get his thoughts on this change to use .7 instead of .85.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Its used by the mixer layout to scale the size of the main text and subtext to the update UI.
image

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 it's fine to use the same scale all through. However, I'm not sure the default scale should be .7. From what I see in many places on figma, the significant part of the amount text uses 18px while the insignificant part uses 14px, which is a scale of 0.78 (14/18). Please verify and adjust accordingly @JustinBeBoy.

if pg.showMaterialLoader {
gtx.Constraints.Min.X = gtx.Constraints.Max.X
return layout.Center.Layout(gtx, pg.materialLoader.Layout)
}
return pg.scroll.List().Layout(gtx, 1, func(gtx C, i int) D {
gtx.Constraints.Max.Y = ticketHeight
Copy link
Collaborator

Choose a reason for hiding this comment

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

Someone who has tickets should verify if this is necessary. What happens if it's removed?

@itswisdomagain
Copy link
Collaborator

itswisdomagain commented Nov 28, 2023

Screenshot 2023-11-28 at 12 13 21 PM

I missed this in my last review. The tickets card isn't as wide as the other cards. Distorts the UI.
There's also no spacing at the bottom of the page.

@dreacot dreacot merged commit cb3d202 into crypto-power:master Nov 28, 2023
1 check passed
dreacot added a commit that referenced this pull request Nov 28, 2023
@JustinBeBoy JustinBeBoy deleted the staking branch March 15, 2024 03:17
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.

update staking layout
4 participants