Skip to content
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
5 changes: 3 additions & 2 deletions CHANGELOG.md
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

formatted with prettier

Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Breaking Changes

## zap [0.2.1] [PR #15](https://github.com/MeteoraAg/zap-program/pull/41)
## zap [0.2.1] [PR #41](https://github.com/MeteoraAg/zap-program/pull/41)

### Fixed
- Fix zap in damm-v2 with new base fee mode

- Fix zap in damm-v2 with new base fee mode

## zap [0.2.0] [PR #15](https://github.com/MeteoraAg/zap-program/pull/15)

### Added

New endpoints `initialize_ledger_account`, `close_ledger_account`, `set_ledger_balance`, `update_ledger_balance_after_swap`, `zap_in_damm_v2`, `zap_in_dlmm_for_initialized_position` and `zap_in_dlmm_for_uninitialized_position` that allow user to zap in damm v2 and dlmm easily. Refer `ZAPIN.md` for zap_in examples
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions programs/zap/Cargo.toml
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

formatted with even-better-toml extension

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zap"
version = "0.2.0"
version = "0.2.1"
description = "Created with Anchor"
edition = "2021"

Expand All @@ -25,5 +25,5 @@ bytemuck = { workspace = true, features = ["derive", "min_const_generics"] }
dlmm = { path = "../../libs/dlmm" }
damm-v2 = { git = "https://github.com/MeteoraAg/damm-v2", features = [
"cpi",
], rev = "d9cef5aaec9cfa1a6d3b0b28d213c87c285127de", package="cp-amm" }
ruint = "1.3.0"
], rev = "d9cef5aaec9cfa1a6d3b0b28d213c87c285127de", package = "cp-amm" }
ruint = "1.3.0"
4 changes: 2 additions & 2 deletions programs/zap/src/instructions/ix_zap_out.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ pub fn handle_zap_out<'c: 'info, 'info>(
) -> Result<()> {
// validate params
params.validate()?;
let disciminator = &params.payload_data[..8]; // first 8 bytes is discriminator
let discriminator = &params.payload_data[..8]; // first 8 bytes is discriminator
require!(
is_support_amm_program(ctx.accounts.amm_program.key, disciminator),
is_support_amm_program(ctx.accounts.amm_program.key, discriminator),
ZapError::AmmIsNotSupported
);
let post_user_token_balance = ctx.accounts.user_token_in_account.amount;
Expand Down
Loading