Skip to content

Commit

Permalink
fix(PCL for Osmosis): address issues found by Oak audit (#5)
Browse files Browse the repository at this point in the history
* fix double refund on excess offer assets

* ensure token_in_denom belongs to pair in swap_exact_amount_out

* don't update price on small trade sizes in swap_exact_amount_out

* pass msg.whitelist_code_id to config on factory instantiation

* factory: emit events on update config fields

* general refactoring

* add before_swap_check validation in reverse swap and swap_exact_amount_out

* bump Rust version used in CI

* bump Rust version used in CI
  • Loading branch information
epanchee authored Jan 5, 2024
1 parent b4c1ce1 commit 1e759d2
Show file tree
Hide file tree
Showing 15 changed files with 433 additions and 485 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.0
toolchain: 1.75.0
override: true

- name: Fetch cargo deps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.0
toolchain: 1.75.0
override: true

- name: Run cargo-tarpaulin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.0
toolchain: 1.75.0
override: true
target: wasm32-unknown-unknown
components: rustfmt, clippy, llvm-tools-preview
Expand Down
Loading

0 comments on commit 1e759d2

Please sign in to comment.