-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: veYFI test * fix: lock * fix: bump lib and enforce chainID * fix: yfi addr * chores: rename * fix: remove more hardcoded chainID * fix: some names * fix: deps * fix: rename async * fix: path * feat: remove claim all * fix: remove deprecated wagmi config * fix: incorrect use of AmountInput * fix: redeem * fix: dYFI price usage * fix: price * feat: prep mainnet * feat: table and apr * fix: reflow * fix: copy * fix: copy * fix: copy * fix: copy * fix: change copy order * fix: swap vote order * fix: change order * fix: change order * feat: add discount * fix: copy --------- Co-authored-by: Majorfi <[email protected]>
- Loading branch information
Showing
69 changed files
with
2,812 additions
and
4,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-disable react-hooks/exhaustive-deps */ | ||
|
||
import {type DependencyList, useCallback, useEffect} from 'react'; | ||
|
||
//Should be useAsyncEffect, but exhaustive-deps is messing with this. | ||
function useAsyncTrigger(effect: () => Promise<void>, deps: DependencyList): () => Promise<void> { | ||
const asyncEffectInCallback = useCallback(async (): Promise<void> => { | ||
effect(); | ||
}, [...deps]); | ||
|
||
useEffect((): void => { | ||
asyncEffectInCallback(); | ||
}, [asyncEffectInCallback]); | ||
|
||
return asyncEffectInCallback; | ||
} | ||
|
||
|
||
export {useAsyncTrigger}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import {useMemo} from 'react'; | ||
import {usePathname, useRouter, useSearchParams} from 'next/navigation'; | ||
|
||
import type {ReactElement} from 'react'; | ||
import type {PartialLocation, QueryParamAdapterComponent} from 'use-query-params'; | ||
|
||
export const NextQueryParamAdapter: QueryParamAdapterComponent = ({children}): ReactElement | null => { | ||
const router = useRouter(); | ||
const pathname = usePathname(); | ||
const searchParams = useSearchParams(); | ||
|
||
const adapter = useMemo((): any => { | ||
return { | ||
replace(location: PartialLocation): void { | ||
router.replace(pathname + location.search); | ||
}, | ||
push(location: PartialLocation): void { | ||
router.push(pathname + location.search); | ||
}, | ||
get location(): {search: string} { | ||
return { | ||
search: searchParams.toString() | ||
}; | ||
} | ||
}; | ||
}, [router, pathname, searchParams]); | ||
|
||
return children(adapter); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
8d32478
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
yearnfi – ./
ybribe.com
ydraft.vercel.app
www.yearn.fi
beta.yearn.farm
yearn.fi
yearn.finance
vote.yearn.finance
www.y.finance
www.ybribe.com
y.finance
yearnfi.yearn.farm
yearnfi-git-main.yearn.farm