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

Fix/refreshVaultState not working #126

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Security

## @mercurial-finance/vault-sdk [2.0.1] - PR [#126](https://github.com/mercurial-finance/vault-sdk/pull/126)

### Fixed

- fix `refreshVaultState` not working

## @mercurial-finance/vault-sdk [2.0.0] - PR [#124](https://github.com/mercurial-finance/vault-sdk/pull/124)

### Changed
Expand All @@ -27,5 +33,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Remove logic to withdraw directly from strategy

- Remove logic to withdraw directly from strategy
2 changes: 1 addition & 1 deletion ts-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mercurial-finance/vault-sdk",
"version": "2.0.0",
"version": "2.0.1",
"description": "Mercurial Vault SDK is a typescript library that allows you to interact with Mercurial v2's vault.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion ts-client/src/vault/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const getVaultStateByPda = async (pdaInfo: PdaInfo, program: VaultProgram) => {
throw 'Cannot get vault state';
}

const lpSupply = await getLpSupply(program.provider.connection, pdaInfo.lpMintPda);
const lpSupply = await getLpSupply(program.provider.connection, vaultState.lpMint);

return { ...pdaInfo, vaultState, lpSupply };
};
Expand Down
Loading