Skip to content

feat: zap protocol fees#166

Closed
defi0x1 wants to merge 20 commits intorelease_0.1.7from
feat/zap_protocol_fees
Closed

feat: zap protocol fees#166
defi0x1 wants to merge 20 commits intorelease_0.1.7from
feat/zap_protocol_fees

Conversation

@defi0x1
Copy link
Contributor

@defi0x1 defi0x1 commented Dec 23, 2025

Summary:

  • Feat: Zap protocol fees
  • Feat: Use access control to all operator endpoints

andrewsource147 and others added 20 commits November 17, 2025 15:17
* remove quote contraints

* remove quote constraints in new endpoint

* update changelog

* update changelog

---------

Co-authored-by: defi0x1 <cristiando0902@gmail.com>
* feat: add new endpoint to update pool fees

* update after self review

* chore: minor refactor (#125)

* minor fix

---------

Co-authored-by: Andrew Nguyen <cuong.hv.dtvt@gmail.com>
Co-authored-by: kampung-tech <codewithgun@gmail.com>
* add warning for claiming partner fee endpoint

* update doc
* feat

* test max fee 99% (#132)

* test max fee 99%

* refactor

* Test (#133)

* test max fee 99%

* refactor

* minor fixs

* fix

* trigger

* remove branch

---------

Co-authored-by: defi0x1 <34453681+defi0x1@users.noreply.github.com>
Co-authored-by: defi0x1 <cristiando0902@gmail.com>
* migrate to liteSVM

* fix tests

* cleanup
* removed deprecated events

* fixs comments

* minor: remove minor
* poc: Pinocchio hot path

* implement event handler with pinocchio

* Refactor entrypoint

* fix token2022

* refactor, resolve conflicts

* add test pinocchio swap (#139)

* WIP

* assert: event decoded data

* assert: swap error code

* trigger cicd

* update: refactor test & add CUs consumed

* fix unwrap (#140)

* validate account to match with anchor context (#141)

* validate account to match with anchor context

* add: validates & errors code

* add: test error code deserialize instruction params

* minor: remove comments

* test: add more test

---------

Co-authored-by: defi0x1 <cristiando0902@gmail.com>

* other fixes

* update CI

---------

Co-authored-by: andrewsource147 <31321699+andrewsource147@users.noreply.github.com>
Co-authored-by: Andrew Nguyen <cuong.hv.dtvt@gmail.com>

* update error code

* fix based comments

* fix based comments 2

* fix based comments 3

---------

Co-authored-by: Arrowana <Arrowana@users.noreply.github.com>
Co-authored-by: defi0x1 <34453681+defi0x1@users.noreply.github.com>
* fix (#148)

* fix typo (#146)

* fix: add validation for number_of_period (#150)

* fix: improper error code (#151)

* Missing bound checks for accounts.split_at_unchecked() in p_entrypoint() (#155)

* Missing account data size and alignment checks (#156)

* rename price_step_bps (#157)

* Infinite loop in validate_single_swap_instruction will cause swap TX to fail (#158)

* Incorrect max fee validation for update_pool_fees (#159)

* Incorrect error messages used for update_pool_fees (#160)

* fix: conflict remaining accounts (#147)

* fix: conflict remaining accounts

* update: remain account index

* update changelog

* update: load operator from account info

* fix: based comments

* fix test

* add: validate account data size

* minor: fix error code

* refactor

---------

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

* invalid event emit (#161)

---------

Co-authored-by: defi0x1 <34453681+defi0x1@users.noreply.github.com>
* feat: fix feature no-entrypoint

* fix test, update feature
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