Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minswap Optimization & new Features after Certik Audit #35

Merged
merged 22 commits into from
Apr 16, 2024
Merged

Conversation

h2physics
Copy link
Member

@h2physics h2physics commented Feb 15, 2024

  • Move Liquidity Pool batching logic to a new Withdrawal contract validate_pool_batching
  • Support Bi-directional Fee
  • Support Donation Order
  • Use constant 10000 as Fee Denominator
  • Allow anyone can create liquidity pools with trading fee between 0.05% -> 20%
  • Get rid of batcher and admin license and use Global Setting contract to store whitelisted batchers and admin
  • Optimize input_indexes by using ByteArray
  • Ad hoc swap value comparision

* move Liquidity Pool logic to Pool batching Withdrawal contract

* use inline datum for contracts except order

* refactor code

* add dynamic fee support

* fix test
…ount in its value and update spec doc (#37)

* allow order can decide its amount by specific amount or relying on amount in its value and update spec doc

* strict datum type of sender and receiver
* add offchain testing

* remove unused file
* support donation order

* update spec
* use 10000 as default fee denominator

* fix docs and comment
@h2physics h2physics changed the title move Liquidity Pool logic to Pool batching Withdrawal contract & support bidirectional fee Minswap Optimization & new Features after Certik Audit Mar 8, 2024
@h2physics h2physics marked this pull request as ready for review March 31, 2024 10:50
h2physics and others added 5 commits April 2, 2024 14:12
* Optimization from Anastasia Labs

* adhoc compare swap value (#47)

* adhoc compare swap value

* add more comments

* resolve audit finding (#48)
…change and inline datum (#50)

* increase Pool Minimum ADA from 3 ADA to 4.5 ADA to buffer for ledger change and inline datum

* update script
@h2physics h2physics merged commit 6239e7e into main Apr 16, 2024
1 check passed
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.

2 participants