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

build fix #150

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/app/slinks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import { Metadata } from 'next';
import { useMemo, useState } from 'react';

const metadata: Metadata = {

Check warning on line 24 in src/app/slinks/page.tsx

View workflow job for this annotation

GitHub Actions / Performs linting, formatting on the application

'metadata' is assigned a value but never used. Allowed unused vars must match /^_/u
title: 'STRKFarm | Yield aggregator on Starknet',
description:
'Find and invest in high yield pools. STRKFarm is the best yield aggregator on Starknet.',
Expand All @@ -31,7 +31,12 @@
const [amount, setAmount] = useState(MyNumber.fromZero());
const address = useAtomValue(addressAtom);
const { provider } = useProvider();
const depositMethods = strat.depositMethods(amount, address || '', provider);
const depositMethods = strat.depositMethods({
amount,
address: address || '',
provider,
isMax: false,
});

const balData = useAtomValue(depositMethods[0].balanceAtom);

Expand All @@ -46,7 +51,7 @@
amount,
tokenAddr: depositMethods[0].tokenInfo.token,
};
}, [amount, balData]);

Check warning on line 54 in src/app/slinks/page.tsx

View workflow job for this annotation

GitHub Actions / Performs linting, formatting on the application

React Hook useMemo has missing dependencies: 'depositMethods' and 'strat.id'. Either include them or remove the dependency array

const maxAmount: MyNumber = useMemo(() => {
return balance;
Expand Down
Loading