diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bc65df..ca743a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security +## @mercurial-finance/dynamic-amm-sdk [1.1.15] - PR[#178](https://github.com/mercurial-finance/mercurial-dynamic-amm-sdk/pull/178) + +### Added + +- Update ` @meteora-ag/stake-for-fee@1.0.26` + ## @mercurial-finance/dynamic-amm-sdk [1.1.14] - PR[#177](https://github.com/mercurial-finance/mercurial-dynamic-amm-sdk/pull/177) ### Added diff --git a/dynamic-amm-quote/tests/fixtures/dynamic_amm.so b/dynamic-amm-quote/tests/fixtures/dynamic_amm.so index 74d3dce..c4a83cb 100755 Binary files a/dynamic-amm-quote/tests/fixtures/dynamic_amm.so and b/dynamic-amm-quote/tests/fixtures/dynamic_amm.so differ diff --git a/ts-client/package.json b/ts-client/package.json index d77c0d9..2537436 100644 --- a/ts-client/package.json +++ b/ts-client/package.json @@ -1,6 +1,6 @@ { "name": "@mercurial-finance/dynamic-amm-sdk", - "version": "1.1.14", + "version": "1.1.15", "description": "Mercurial Vaults SDK is a typescript library that allows you to interact with Mercurial v2's AMM.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", @@ -17,7 +17,7 @@ "@mercurial-finance/token-math": "6.0.0", "@mercurial-finance/vault-sdk": "2.2.0", "@metaplex-foundation/mpl-token-metadata": "~2.13.0", - "@meteora-ag/stake-for-fee": "1.0.22", + "@meteora-ag/stake-for-fee": "1.0.26", "@project-serum/anchor": "^0.24.2", "@solana/buffer-layout": "^3 || ^4", "@solana/spl-token": "^0.4.6", diff --git a/ts-client/pnpm-lock.yaml b/ts-client/pnpm-lock.yaml index 44394f9..9b50411 100644 --- a/ts-client/pnpm-lock.yaml +++ b/ts-client/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: specifier: ~2.13.0 version: 2.13.0(bufferutil@4.0.7)(fastestsmallesttextencoderdecoder@1.0.22)(utf-8-validate@5.0.10) '@meteora-ag/stake-for-fee': - specifier: 1.0.22 - version: 1.0.22(bufferutil@4.0.7)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.4)(utf-8-validate@5.0.10) + specifier: 1.0.26 + version: 1.0.26(bufferutil@4.0.7)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.4)(utf-8-validate@5.0.10) '@project-serum/anchor': specifier: ^0.24.2 version: 0.24.2(bufferutil@4.0.7)(utf-8-validate@5.0.10) @@ -398,8 +398,8 @@ packages: '@metaplex-foundation/mpl-token-metadata@2.13.0': resolution: {integrity: sha512-Fl/8I0L9rv4bKTV/RAl5YIbJe9SnQPInKvLz+xR1fEc4/VQkuCn3RPgypfUMEKWmCznzaw4sApDxy6CFS4qmJw==} - '@meteora-ag/stake-for-fee@1.0.22': - resolution: {integrity: sha512-PqFKj+c/wzPM1uHAQQSP1tRhEvoKkjGweHHMiDy8S9qGM8WC24Y8ZNCAPikUitP01HqAZ6JVWYzBHO4UlIUzSA==} + '@meteora-ag/stake-for-fee@1.0.26': + resolution: {integrity: sha512-yRjjl+/xWNNNth7aI6jlLYHmkod2xKZ2Z2di6qUusLUb1806k06zMusFel8pkqlTjLU5ZGiIJakdttgdMvQWhw==} '@noble/curves@1.4.2': resolution: {integrity: sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==} @@ -2551,7 +2551,7 @@ snapshots: - supports-color - utf-8-validate - '@meteora-ag/stake-for-fee@1.0.22(bufferutil@4.0.7)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.4)(utf-8-validate@5.0.10)': + '@meteora-ag/stake-for-fee@1.0.26(bufferutil@4.0.7)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.4)(utf-8-validate@5.0.10)': dependencies: '@coral-xyz/anchor': 0.28.0(bufferutil@4.0.7)(utf-8-validate@5.0.10) '@coral-xyz/borsh': 0.30.1(@solana/web3.js@1.95.4(bufferutil@4.0.7)(utf-8-validate@5.0.10)) diff --git a/ts-client/src/amm/index.ts b/ts-client/src/amm/index.ts index ab22fa6..e353c16 100644 --- a/ts-client/src/amm/index.ts +++ b/ts-client/src/amm/index.ts @@ -464,7 +464,6 @@ export default class AmmImpl implements AmmImplementation { const createFeeVaultIxs = await StakeForFee.createFeeVaultInstructions( connection, poolPubkey, - tokenAMint, payer, tokenAMint, tokenBMint, @@ -803,7 +802,7 @@ export default class AmmImpl implements AmmImplementation { feeVault?: { secondsToFullUnlock: BN; topListLength: number; - startClaimFeeTimestamp: BN | null; + startFeeDistributeTimestamp: BN | null; unstakeLockDuration: BN; }; }, @@ -1029,7 +1028,6 @@ export default class AmmImpl implements AmmImplementation { const createFeeVaultIxs = await StakeForFee.createFeeVaultInstructions( connection, poolPubkey, - tokenAMint, payer, tokenAMint, tokenBMint,