File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
apps/vaults-v3/components/details Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -76,17 +76,7 @@ export function BoostMessage(props: {
76
76
! props . hasStakingRewardsLive &&
77
77
stakingRewardSource !== 'VeYFI'
78
78
) {
79
- return (
80
- < div className = { 'col-span-12 flex p-4 pt-0 md:px-8 md:pb-6' } >
81
- < div className = { 'w-full rounded-lg bg-[#F8A908] p-2 md:px-6 md:py-4' } >
82
- < b className = { 'text-base text-white' } >
83
- {
84
- "This Vault is no longer reciving any extra rewards. But don't worry, you are still earning the normal yield!"
85
- }
86
- </ b >
87
- </ div >
88
- </ div >
89
- ) ;
79
+ return < Fragment /> ;
90
80
}
91
81
92
82
if ( props . currentTab === 0 && hasStakingRewards && stakingRewardSource === 'OP Boost' ) {
Original file line number Diff line number Diff line change @@ -146,7 +146,12 @@ export function VaultDetailsQuickActionsFrom(): ReactElement {
146
146
] ,
147
147
query : {
148
148
enabled : ! isZeroAddress ( address ) && ! isZeroAddress ( actionParams ?. selectedOptionFrom ?. value ) ,
149
- select ( data ) {
149
+ select (
150
+ data : (
151
+ | { error : Error ; result ?: undefined ; status : 'failure' }
152
+ | { error ?: undefined ; result : unknown ; status : 'success' }
153
+ ) [ ]
154
+ ) {
150
155
const balanceOf = decodeAsBigInt ( data [ 0 ] ) ;
151
156
const decimals = isEthAddress ( actionParams ?. selectedOptionFrom ?. value ) ? 18 : decodeAsNumber ( data [ 1 ] ) ;
152
157
return toNormalizedBN ( balanceOf , decimals ) ;
You can’t perform that action at this time.
0 commit comments