-
Notifications
You must be signed in to change notification settings - Fork 0
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
David/add liquidity #1
Conversation
pages/dao/[symbol]/proposal/components/instructions/Meteora/CreatePosition.tsx
Show resolved
Hide resolved
pages/dao/[symbol]/proposal/components/instructions/Meteora/CreatePosition.tsx
Show resolved
Hide resolved
pages/dao/[symbol]/proposal/components/instructions/Meteora/CreatePosition.tsx
Show resolved
Hide resolved
pages/dao/[symbol]/proposal/components/instructions/Meteora/CreatePosition.tsx
Show resolved
Hide resolved
pages/dao/[symbol]/proposal/components/instructions/Meteora/CreatePosition.tsx
Show resolved
Hide resolved
pages/dao/[symbol]/proposal/components/instructions/Meteora/CreatePosition.tsx
Show resolved
Hide resolved
const TOTAL_RANGE_INTERVAL = 10; | ||
minBinId = activeBin.binId - TOTAL_RANGE_INTERVAL; | ||
maxBinId = activeBin.binId + TOTAL_RANGE_INTERVAL; | ||
const TOTAL_RANGE_INTERVAL = 25 |
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.
I changed this but not sure if 25 is the best full default either.
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.
I personally, despise hardcoding values - can you provide any insight, into it's possible to calculate the range interval dynamically - or at the very least, use the .env?
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.
Dynamically doesn't really make sense for this particular value, if they select a particular bin range from the uI though then that would be used. This should be the default max bin value which i think is supposed to be 70. i'll test that quick and see. I'll move it to a better labeled value const after that.
pages/dao/[symbol]/proposal/components/instructions/Meteora/CreatePosition.tsx
Show resolved
Hide resolved
Ready to merge with Main once conversation is completed |
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.
This looks good to me. Going to run a test and then merge/
merging and removing your branch :D |
No description provided.