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

Support astroport pair sale tax #32

Merged
merged 42 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
274d4fd
chore: bump cw-it and cosmwasm-std
apollo-sturdy Mar 8, 2024
54115a9
build: update makefile
apollo-sturdy Mar 11, 2024
0466d0a
test: Add new astroport contracts
apollo-sturdy Mar 11, 2024
8c9faa8
test: Add tests for astroport-pair-xyk-sale-tax
apollo-sturdy Mar 11, 2024
6fa98ae
wip: Implement support for astroport-pair-xyk-sale-tax
apollo-sturdy Mar 11, 2024
1414bad
wip
pacmanifold Mar 13, 2024
45b221c
wip: implement BigDecimal
pacmanifold Apr 3, 2024
658adb5
test: add tests for bigint_to_u128
pacmanifold Apr 3, 2024
3333cf2
test: add UTs for BigDecimal addition
pacmanifold Apr 3, 2024
a2f6c04
test: add tests for BigDecimal subtraction
pacmanifold Apr 3, 2024
b052f9b
test: more test cases for add and sub
pacmanifold Apr 3, 2024
83375a3
test: tests for BigDecimal mul
pacmanifold Apr 3, 2024
56ec972
test: tests for BigDecimal div
pacmanifold Apr 3, 2024
ce8f005
test: tests for bigdecimal sqrt
pacmanifold Apr 3, 2024
74d1f0e
test: comment out old tests
pacmanifold Apr 3, 2024
cc64a8f
wip: new math
pacmanifold Apr 3, 2024
44c03b3
test: add tests for BigDecimal BigInt arithmetic
pacmanifold Apr 4, 2024
02abaae
test: uncomment outcommented tests
pacmanifold Apr 4, 2024
8d30743
wip
pacmanifold Apr 4, 2024
331b74a
wip
pacmanifold Apr 4, 2024
c0844bb
fix: Use original constant product formula from astroport
apollo-sturdy Apr 5, 2024
4cd32fb
fix: correct test case expected result
apollo-sturdy Apr 8, 2024
c9ed83c
style: clippy fmt
apollo-sturdy Apr 8, 2024
25f9627
fix: don't put xyk logic in own function
apollo-sturdy Apr 8, 2024
251fb5a
fix: Only return funds if there are some
apollo-sturdy Apr 8, 2024
e9449cb
fix: account for tax in tests
apollo-sturdy Apr 9, 2024
b9b97ad
fix: incorrect test case
apollo-sturdy Apr 9, 2024
256ddae
feat: use new equation
apollo-sturdy Apr 9, 2024
cfe429a
test: allow max diff of 3 permille
apollo-sturdy Apr 9, 2024
f355fa0
test: Add property tests for astroport liquidity helper
apollo-sturdy Apr 9, 2024
b160378
style: clean up tests
apollo-sturdy Apr 9, 2024
02409fd
test: use astroport pcl from v2.9.7
apollo-sturdy Apr 9, 2024
9dabed3
style: remove printlns
apollo-sturdy Apr 9, 2024
88b4558
fix: failing test case after astroport upgrade
apollo-sturdy Apr 9, 2024
c75f331
build: feature gate osmosis-test-tube in astroport liq helper
apollo-sturdy Apr 9, 2024
c9d0819
style: clippy
apollo-sturdy Apr 9, 2024
adb9147
feat: Use cw-dex-osmosis for osmosis liquidity helper
apollo-sturdy Apr 9, 2024
1a40507
docs: Bump version and update changelog
apollo-sturdy Apr 9, 2024
71964ac
fix: explicitly deny unsupported pool types
apollo-sturdy Apr 9, 2024
c1b7f9a
refactor: Move BigDecimal to own file
apollo-sturdy Apr 9, 2024
ca37c2e
docs: update incorrect comment
apollo-sturdy Apr 9, 2024
d44556a
style: clippy & fmt
apollo-sturdy Apr 9, 2024
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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [0.3.3] - 2024-04-09

### Changed

- Bump `cosmwasm-std` to version `1.5.3`.
- Use Pool types from `cw-dex-astroport` and `cw-dex-osmosis` packages in place of the deprecated ones in `cw-dex`.
- Support Astroport pair type `astroport-pair-xyk-sale-tax`.

# [0.3.2] - 2024-02-06

### Changed

- Bump `cw-dex` to version `0.5.1`.

## [0.3.1] - 2023-11-06
Expand Down
Loading
Loading