* 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 |
||
---|---|---|
.. | ||
liquidate.rs | ||
main.rs | ||
metrics.rs | ||
rebalance.rs | ||
telemetry.rs | ||
token_swap_info.rs | ||
trigger_tcs.rs | ||
util.rs |