Skip to content

Commit

Permalink
Fix: balance using incorrect endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Dec 15, 2023
1 parent 7d236c7 commit 762b63f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10,841 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.3.3 (15/12/2023)

- Fix: balance using incorrect endpoint

# 0.3.3 (14/12/2023)

- Update copy from `Peg` to `CRV Ratio` in the `yCRV` page.
Expand Down
14 changes: 3 additions & 11 deletions apps/vaults/components/details/VaultActionsTabsWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,11 @@ const tabs: TTabsOptions[] = [
{value: 3, label: '$OP BOOST', flowAction: Flow.None, slug: 'boost'}
];

function getCurrentTab({
isDepositing,
hasMigration,
isRetired
}: {
isDepositing: boolean;
hasMigration: boolean;
isRetired: boolean;
}): TTabsOptions {
if (hasMigration || isRetired) {
function getCurrentTab(props: {isDepositing: boolean; hasMigration: boolean; isRetired: boolean}): TTabsOptions {
if (props.hasMigration || props.isRetired) {
return tabs[1];
}
return tabs.find((tab): boolean => tab.value === (isDepositing ? 0 : 1)) as TTabsOptions;
return tabs.find((tab): boolean => tab.value === (props.isDepositing ? 0 : 1)) as TTabsOptions;
}

export function VaultActionsTabsWrapper({currentVault}: {currentVault: TYDaemonVault}): ReactElement {
Expand Down
2 changes: 1 addition & 1 deletion apps/vaults/contexts/useWalletForZaps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const WalletForZapAppContextApp = memo(function WalletForZapAppContextApp
** Fetching, for this user, the list of tokens available for zaps
***************************************************************************/
const {data: tokensList} = useFetch<TYDaemonTokenListBalances>({
endpoint: address ? `${yDaemonBaseUri}/balances/${address}` : null,
endpoint: address ? `${yDaemonBaseUri}/balancesN/${address}` : null,
schema: yDaemonTokenListBalances
});

Expand Down
Binary file added bun.lockb
Binary file not shown.
Loading

1 comment on commit 762b63f

@vercel
Copy link

@vercel vercel bot commented on 762b63f Dec 15, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.