Commit Graph

11 Commits

Author SHA1 Message Date
Yutaro Mori a574ae5922
Increase the fee rate limit and log fee growth within the swap instruction (#104)
* Increase the fee rate limit and log fee growth within the swap instruction

* PR feedback

* log reward_growth

* remove .only

* only perform 1 log

* Revert "only perform 1 log"

This reverts commit 2ab6c5b6d2c3a29632d2285f6145231349720429.

* Revert "remove .only"

This reverts commit a39f15f6e55996155d00c26817966b22e6b26e95.

* Revert "log reward_growth"

This reverts commit f54e2060dde17c0ebb5cf5c30806c613088db165.

---------

Co-authored-by: Otto Cheung <otto@orca.so>
2023-08-22 20:35:13 -04:00
yugure-orca 44021b15a7
bundled positions (#89)
## Anchor v0.26.0 upgrade (rebased)
Special thanks @dovahcrow !

* anchor 0.26 solana 1.14.12

use mpl-token-metadata 1.7 because rust 1.60 does not compile 1.8

* initialize_pool: ignore passed bump and use one anchor derived

- initialize_pool.test: update error codes, add a test case for ignoring bump

* update expected error messages

* add CHECK comments on UncheckedAccounts

* use create_metadata_accounts_v3 (v2 have been deprecated)

* update unit test cases (cargo test)

## Bundled Positions
* import bundled positions

* upgrade to Anchor v0.26.0 (position bundles related codes)

- ProgramResult to Result<()>
- add /// CHECK comments
- remove space attribute on Mint account
- change create_metadata_accounts_v2 to v3
- update testcases
  - Change in error code detected first
  - Change in account closing method
    https://github.com/coral-xyz/anchor/pull/2169

* cargo fmt

* update seed of BundledPosition

* change temporary mint_authority to position_bundle

* bump to v0.2.0

doc fields are added on IDL

* fix: accidental failure test cases

Fixed test cases that did not take into account rewards accruing up to just before the close.
This test case is not related to bundled positions.
The test case happened to fail, so I fixed them to make them all successful.

---------

Co-authored-by: Weiyuan Wu <weiyuan@crows.land>
2023-04-07 21:18:56 +09:00
Phil Chen c3a02ee3ed
Two-hop swap instruction (#87)
* Two-hop swap instruction

* Add testing infra

* Remove .only from jest test

* Try setting a sqrt price limit

* Fix price limit tests

* Add additional tests

* Fix tests

---------

Co-authored-by: Yutaro Mori <yutaro@orca.so>
2023-02-17 05:57:03 +03:00
Yutaro Mori 2f569a7574
Update Whirlpool position NFT metadata URI (#83)
Co-authored-by: yugure-orca <109891005+yugure-orca@users.noreply.github.com>
2023-01-27 22:40:31 +03:00
Phil Chen e4bdde3bd1
Handle liquidity swapping edge case across initialized tick boundary (#82) 2023-01-24 10:45:17 -08:00
FuzzyYeti 1acd1469bd
Update protocol_fee_rate comment (#44)
Co-authored-by: Fuzzy Yeti <fuzzyyeti@github.com>
2022-09-04 08:46:50 -07:00
Sohrab 1479717b73
fix(token): remove double clone()ing from CPI calls (#11) 2022-06-07 13:44:26 -07:00
tmoc 451a04040b
Variable name consistency in lib.rs and swap.rs. Regenerating IDL to pick up argument name change (#24) 2022-06-07 12:18:14 -04:00
Jabur b4b976b802
Update anchor sources to git (#22)
Update anchor sources to git as the ones from cargo were yanked and people can't import it or face a build error.
2022-06-04 11:29:37 -07:00
meep 1d7b482cbd
Refactor SDK and add formal documentation (#2)
- Add Typedoc integration to SDK
- Reorganize and finalize SDK structure
- Add documentation and categorize SDK public items (not all)
- Port quotes over from orca-sdk and provide sync options
- Port all utils over from orca-sdk and reorganize them into cleaner buckets
- Update test structure for integration tests and SDK tests
- Update README.md
- Add WhirlpoolClient to help construct the more complicated transactions
- Remove WhirlpoolIx Instruction's dependency on Transaction
2022-05-09 10:04:47 -07:00
meep c55588a6ea
Open Source commit for Orca Whirlpools (#1) 2022-05-02 20:32:00 -07:00