Skip to content

Conversation

@bangyro
Copy link
Collaborator

@bangyro bangyro commented Jan 14, 2026

No description provided.

expect(result).instanceOf(TransactionMetadata);
});

it("zap in without external swap with rate limiter and remaining accounts", async () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Testing without external swap since we're validating for single_swap and the external swap would result in multiple swap

position,
positionNftAccount,
preSqrtPrice: poolState.sqrtPrice,
maxSqrtPriceChangeBps: U32_MAX.toNumber(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The price change ends up really big. Putting it to max avoids the tx from erroring out due to slippage.

@bangyro bangyro marked this pull request as ready for review January 14, 2026 08:43
@andrewsource147 andrewsource147 merged commit 020f3d2 into release_0.2.1 Jan 14, 2026
3 checks passed
@andrewsource147 andrewsource147 deleted the fix/zap-in-dammv2-missing-instructions-sysvar branch January 14, 2026 11:19
andrewsource147 added a commit that referenced this pull request Jan 19, 2026
* Fix: dammv2 fee by market cap (#40)

* feat: bump damm-v2 to 0.1.6

* fix: type expected by calculate_transfer_fee_excluded_amount

* feat: market cap fee mode

* fix: use rev instead of branch

* fix: take sqrt_price from pool instead of passing in

* fix damm v2 no-entrypoint package

* update damm v2 package

* feat: update damm_v2 artifacts

* fix: update damm_v2 tests

---------

Co-authored-by: Andrew Nguyen <cuong.hv.dtvt@gmail.com>

* fix fee by market cap damm-v2

* Feat/bump version 0.2.1 in cargo.toml (#43)

* feat: bump cargo version

* docs: update pr number

* fix: typo

* Fix: zap in dammv2 missing instructions sysvar (#44)

* fix: add remaining accounts

* feat: update damm_v2 to 0.1.7

* docs: update changelog

---------

Co-authored-by: bangyro <229454856+bangyro@users.noreply.github.com>
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.

3 participants