-
Notifications
You must be signed in to change notification settings - Fork 33
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
Adding v1 of the new ETH filter for pools #196
base: dev
Are you sure you want to change the base?
Conversation
I dont know how to create the vercel link needed in the PR. I deleted the initial messages of the PRs description. |
|
I'm banned and I dont know why, I just posted an error that I'm facing in Vercel while deploying the app. @EjembiEmmanuel @akiraonstarknet I'm trying to deploy mi forked version of starkfarm, and I'm getting this error:
Error occurred prerendering page "/api/strategies". Read more: https://nextjs.org/docs/messages/prerender-error |
Does the project build locally without errors? If yes, then it might be that you didn't configure the environment variables correctly. |
@Gerson2102 make sure you set the following env variables
|
I'm getting three errors locally: @EjembiEmmanuel |
These are my env variables: NEXT_PUBLIC_RPC_URL=https://starknet-mainnet.public.blastapi.io DATABASE_URL= ACCOUNT_PK=0x0574ba4998dd9aedf1c4d6e56b747b29256a795bc3846437d121cd64b972bdd8 CRON_SECRET= NEXT_PUBLIC_NETWORK=mainnet |
You don't need to set the HOSTNAME when deploying on vercel |
I will check and revert |
Yeah, I was sharing my local env variables. The env variables for vercel are the ones that you told me. |
Oh okay |
@EjembiEmmanuel can we add this to our .env.sample? Raise a new and PR for this. Also add necessary comments for variables on how people can get them which are not publicly availble. |
Alright |
@Gerson2102 I just pushed a minor fix. Can you try deploying on vercel again? |
@EjembiEmmanuel CI is failing but dont understand why. Locally is not working either. |
This url is for your private deployment. Please share the public url instead |
It's the same thing |
Can you explain how to do that? Don't you think is easier? |
Try this one: https://starkfarm-client-steel.vercel.app |
Still doesn't work. Maybe try deleting the deployment and creating a new one |
|
@EjembiEmmanuel I closed it but it was a mistake. |
This is the only link that I can share: https://starkfarm-client-steel.vercel.app/ |
The CI is failing because of unsuccessful RPC calls, it could be that the CI is using the RPC url for sepolia instead of mainnet. Try to create a |
Yea, that's why I said you should delete the current deployment and create a new one. Maybe it'll fix it |
Got it. Run the CI now please. |
Still failing. How did you set the create variable? |
Just like you said. I went to my fork and create a secret variable. RPC_URL and then the value. |
The CI is failing because there is errors on these paths: /api/stats/route: /api/stats But there is nothing wrong when I check the code in my IDE |
The error is not coming from the code, the code is fine |
Alright then, just ignore it for now |
The eth filter is working fine. |
src/store/carmine.store.ts
Outdated
@@ -48,14 +48,14 @@ export class Carmine extends Jediswap { | |||
const poolData = myData[config.name]; | |||
if (!poolData || !poolData.data) return; | |||
|
|||
let category: Category; | |||
const category: Category[] = [Category.Others]; |
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.
Dont think having others as default for everything makes sense.
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.
Others is only for something that doesn't wallet in one of the known categories.
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.
Got it. So I'm going to just defined the variable and thats it. @akiraonstarknet
@@ -77,7 +78,7 @@ export function getDefaultPoolInfo(): PoolInfo { | |||
apr: 0, | |||
tvl: 0, | |||
aprSplits: [], | |||
category: Category.Others, | |||
category: [Category.Others], |
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.
Need to validate this. @EjembiEmmanuel
PR Fixes:
Adding version 1 of the ETH pool filter. This PR is ready for review.
Resolves #192
Vercel website link
https://starkfarm-client-git-eth-filter-gersons-projects-b3389356.vercel.app/
Checklist before requesting a review