mango-v4/programs/mango-v4/resources/test
Lou-Kamades 9ce6b67831
Add an Orca oracle type (#813)
* deps: add whirlpool crate

* allow oracle to read price from Orca CLMM

* test: add test for raw orca CLMM price

* require the USD/USDC oracle when using a CLMM oracle

* test: add CLMM oracle tests

* use KeyedAccountReader instead of AccountInfoRef for fallback fetching functions

* calculate price for inverted orca pools

* ensure that Orca fallback oracles have USDC side

* remove unused Whirlpool impl

* clmm prices have correct decimals and pyth update slot

* manually deserialize the orca Whirlpool

* refactor: use OracleAccountInfos when checking oracle price

* properly handle inverted clmm prices

* update rs client with OracleAccountInfos struct

* refactor: simplify OracleAccountInfos impl

* add clmm oracle integration test

* use OracleAccountInfos::from_reader in account_retriever

* CLM oracles inherit deviation from supplementary quote oracle

* review fixes

* use f64 division for clmm sqrt price

* standardize fixed to f64 conversion

* review fixes
2024-01-04 11:29:54 -06:00
..
8k7F9Xb36oFJsjpCKpsXvg4cgBRoZtwNTc3EzG5Ttd2o.bin switchboard support (#67) 2022-06-18 16:38:46 +02:00
83v8iPyZihDEjDdY8RdZddyZNyUtXngz69Lgo9Kt5d6d.bin Add an Orca oracle type (#813) 2024-01-04 11:29:54 -06:00
Gnt27xtC473ZT2Mw5u8wZ68Z3gULkSTb5DuxJy7eJotD.bin Add an Orca oracle type (#813) 2024-01-04 11:29:54 -06:00
GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR.bin switchboard support (#67) 2022-06-18 16:38:46 +02:00
J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix.bin mc/pyth (#14) 2022-03-02 21:11:05 +01:00