Skip to content
Open
Show file tree
Hide file tree
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
148,049 changes: 148,049 additions & 0 deletions .yarn/releases/yarn-1.22.22.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


yarn-path ".yarn/releases/yarn-1.22.22.cjs"
26,341 changes: 19,976 additions & 6,365 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@
"react-hot-toast": "^2.4.1",
"react-mixpanel": "1.0.5",
"react-pro-sidebar": "1.1.0",
"react-responsive": "^10.0.0",
"react-responsive-carousel": "3.2.23",
"react-select": "5.8.0",
"react-share": "5.1.0",
"recharts": "^2.12.7",
"sharp": "^0.33.4",
"starknet": "6.4.1",
"starknetkit": "1.1.9",
Expand Down
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/strk-text-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import tg from '@/assets/tg.svg';
import { Calculator } from '@/components/Calculator';
import Pools from '@/components/Pools';
import Strategies from '@/components/Strategies';
import CONSTANTS from '@/constants';
Expand Down Expand Up @@ -37,6 +38,8 @@ export default function Home() {
console.log('tab', tab);
if (tab === 'pools') {
setTabIndex(1);
} else if (tab === 'calculator') {
setTabIndex(2);
} else {
setTabIndex(0);
}
Expand All @@ -51,6 +54,8 @@ export default function Home() {
function handleTabsChange(index: number) {
if (index === 1) {
setRoute('pools');
} else if (index === 2) {
setRoute('calculator');
} else {
setRoute('strategies');
}
Expand Down Expand Up @@ -98,6 +103,15 @@ export default function Home() {
>
Find yields
</Tab>
<Tab
color="light_grey"
_selected={{ color: 'color2Text' }}
onClick={() => {
mixpanel.track('Calculator opened');
}}
>
Calculator
</Tab>
</TabList>
<TabIndicator
mt="-1.5px"
Expand All @@ -113,6 +127,9 @@ export default function Home() {
<TabPanel bg="highlight" float={'left'} width={'100%'}>
<Pools />
</TabPanel>
<TabPanel bg="highlight" float={'left'} width={'100%'}>
<Calculator />
</TabPanel>
</TabPanels>
</Tabs>
{/* <hr style={{width: '100%', borderColor: '#5f5f5f', float: 'left', margin: '20px 0'}}/> */}
Expand Down
Loading