Skip to content

Commit

Permalink
feat: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMomota committed Oct 17, 2024
1 parent 6df25f3 commit 47ffa29
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ export default function FeeSelector({

useEffect(() => {
const fetchFarmV3Config = async () => {
const farms = await fetchUniversalFarms(chainId, Protocol.V3)
setFarmV3Config(defineFarmV3ConfigsFromUniversalFarm(farms as UniversalFarmConfigV3[]))
if (currencyA?.chainId) {
const farms = await fetchUniversalFarms(currencyA?.chainId, Protocol.V3)
setFarmV3Config(defineFarmV3ConfigsFromUniversalFarm(farms as UniversalFarmConfigV3[]))
}
}

fetchFarmV3Config()
}, [])
}, [currencyA])

const farmV3 = useMemo(() => {
if (currencyA && currencyB) {
Expand Down

0 comments on commit 47ffa29

Please sign in to comment.