Skip to content

Commit

Permalink
fix: issue #33
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Sep 20, 2024
1 parent cbdf00d commit ec4e495
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 1 addition & 11 deletions apps/vaults-v3/components/details/VaultActionsTabsWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,7 @@ export function BoostMessage(props: {
!props.hasStakingRewardsLive &&
stakingRewardSource !== 'VeYFI'
) {
return (
<div className={'col-span-12 flex p-4 pt-0 md:px-8 md:pb-6'}>
<div className={'w-full rounded-lg bg-[#F8A908] p-2 md:px-6 md:py-4'}>
<b className={'text-base text-white'}>
{
"This Vault is no longer reciving any extra rewards. But don't worry, you are still earning the normal yield!"
}
</b>
</div>
</div>
);
return <Fragment />;
}

if (props.currentTab === 0 && hasStakingRewards && stakingRewardSource === 'OP Boost') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@ export function VaultDetailsQuickActionsFrom(): ReactElement {
],
query: {
enabled: !isZeroAddress(address) && !isZeroAddress(actionParams?.selectedOptionFrom?.value),
select(data) {
select(
data: (
| {error: Error; result?: undefined; status: 'failure'}
| {error?: undefined; result: unknown; status: 'success'}
)[]
) {
const balanceOf = decodeAsBigInt(data[0]);
const decimals = isEthAddress(actionParams?.selectedOptionFrom?.value) ? 18 : decodeAsNumber(data[1]);
return toNormalizedBN(balanceOf, decimals);
Expand Down

0 comments on commit ec4e495

Please sign in to comment.