Skip to content

Commit 117e7d5

Browse files
andrewsource147defi0x1codewithgun
authored
Release 0.2.0 (#15)
* init release 0.2.0 * Zap in (#18) * init * update changelog * remove comments * update flow * refactor * care for transfer fee extension * refactor * fix for rate limiter * fix for rate limiter * fix rate limiter * add zapin dlmm * fix based comments * add unit test for dlmm * add unit test in damm v2 * log deposit and remaining amounts after zapin * test/fix zap in (#17) * dammv2 0.1.5 * update test * trigger cicd * low liquidity case * fix liquidity * remove only * cicd * update test * update test * update test * bin array bitmap extension test * fix comments * fix test --------- Co-authored-by: Andrew Nguyen <cuong.hv.dtvt@gmail.com> * support transfer fee (#19) * update readme --------- Co-authored-by: defi0x1 <34453681+defi0x1@users.noreply.github.com> * allow position to shrink * fix account borrow (#20) * flexible for zap in (#22) * Release 0.2.0 Audit fix (#37) * fix: price diff bps ceil (#26) * fix: validate min max delta (#28) * fix: make sure position not rent payer as well (#30) * fix: use crate defined max basis point (#32) * fix: potential overflow in user ledger (#33) * fix: exp i32::MIN not representable (#34) * fix: skip swap when output is zero amount (#35) * fix: skip swap if output is zero * fix: swap_out_amount inverted * fix: typo and comments (#31) * fix: potential overflow (#27) * fix: potential overflow * chore: use non upcast formula to calc midpoint * fix: return error if unknown fee mode (#38) * fix: stop swap if swap computation fail (#25) * fix: stop swap attempt if sim fail * fix: stop swap attempt if sim fail * fix: binary search (#36) * fix: avoid meaningless loop * fix after rebase --------- Co-authored-by: Andrew Nguyen <cuong.hv.dtvt@gmail.com> * fix: curve and bid ask single bin zap in (#23) * fix: curve & bidask zap in single bin * fix: bidask and curve x0, delta_x formula when delta == 0 * fix: curve reduce precision loss (#24) * fix: curve reduce precision loss * fix type --------- Co-authored-by: Andrew Nguyen <cuong.hv.dtvt@gmail.com> --------- Co-authored-by: kampung-tech <tian@raccoons.dev> * minor fix (#39) * remove unused import --------- Co-authored-by: defi0x1 <34453681+defi0x1@users.noreply.github.com> Co-authored-by: kampung-tech <tian@raccoons.dev>
1 parent c171942 commit 117e7d5

61 files changed

Lines changed: 39876 additions & 23015 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- release_0.2.0
8+
- zap_in
79

810
env:
911
SOLANA_CLI_VERSION: 2.1.0

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ target
55
node_modules
66
test-ledger
77
.yarn
8+
deploy.sh

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Added
11+
12+
### Changed
13+
14+
### Deprecated
15+
16+
### Removed
17+
18+
### Fixed
19+
20+
### Security
21+
22+
### Breaking Changes
23+
24+
## zap [0.2.0] [PR #15](https://github.com/MeteoraAg/zap-program/pull/15)
25+
26+
### Added
27+
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

0 commit comments

Comments
 (0)