-
Notifications
You must be signed in to change notification settings - Fork 83
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
Basin UI (3) - Yield info + misc fixes #713
Basin UI (3) - Yield info + misc fixes #713
Conversation
const getSeedsWithWell = useCallback( | ||
(well: Well | undefined) => { | ||
if (!well?.lpToken) return undefined; | ||
return sdk.tokens.findByAddress(well.lpToken.address)?.getSeeds(); |
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.
In order for .getSeeds() to work, you MUST call sdk.refresh()
Note, this requires BIP39, which hasn't been deployed yet so this means we cannot merge this PR until after.
Happy to chat about this if you have questions. You don't need to set the seed for each token like I did in the UI PR below the line commented, that was only to update the UI's tokens... the SDK will update its tokens on refresh().
…eld-and-housekeeping
In This PR:
To deploy an empty well for testing, you can run npx ts-node projects/examples/src/wells/deployNewWell.ts from the project root folder