Skip to content
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

Feature/prepare split #211

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

Feature/prepare split #211

wants to merge 5 commits into from

Conversation

0xcrust
Copy link
Contributor

@0xcrust 0xcrust commented Apr 6, 2023

  • Combine sunrise token accounts into a single type TokenConfig in SunriseStakeClient.
  • Create new private methods makeBlaze(), makeMarinade(), getTokenConfig that init() now depends on.
  • Create new private methods getMpDetails(), getLpDetails(), .... that details() now depends on.

The external interface provided by SunriseStakeClient remains the same.

@0xcrust 0xcrust requested a review from dankelleher April 6, 2023 12:44
@vercel
Copy link

vercel bot commented Apr 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2023 0:58am

interface BlazeConfig {
pool: PublicKey;
bsolMint: PublicKey;
}

interface MarinadeConfig {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this in order to be able to remove the marinade sdk from our build?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That could be a long-term idea. Right now it only reduces our dependency on it. i.e now we're able to derive the bsolTokenAccountAuthority without needing to have called initMarinade() first.

return [marinade, marinadeState];
}

// TODO
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add some more detail here of what is remaining?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That shouldn't be there. I'll remove it now

@ronnyhaase ronnyhaase linked an issue Apr 24, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce number of rpc calls and rewrite orderUnstake logic.
2 participants