Skip to content

Feature/prepare split - #211

Closed
0xcrust wants to merge 1 commit into
developfrom
feature/prepare_split
Closed

0xcrust wants to merge 1 commit into
developfrom
feature/prepare_split

Conversation

@0xcrust

@0xcrust 0xcrust commented Apr 6, 2023

Copy link
Copy Markdown
Contributor
  • 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

vercel Bot commented Apr 6, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Error Error Jul 8, 2026 12:03am

bsolMint: PublicKey;
}

interface MarinadeConfig {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

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.

3 participants