-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* margin changes * add quote_spot_market_index to perp market * pass in usdc oracle * start work on sdk * more sdk * example forking oracle data based on slot * use strict mode for valuing perp position margin requirement and pnl * some tests for usdc deposit/borrows when not equal to 1 * add test for perps * fix max lev calculation * fix imbalancePerpPnl.ts * fix liquidityProvider.ts * spot_balance/tests.rs: add usdc twap test case to explain twap != 1 * liquidate_perp account for quote oracle price * account for quote price in all liquidation functions * tweak order for writable market overrides for getRemainingAccounts * stats.rs: better handle twap updates with weight=0 * pythStableCoin * getOracleClient account for pythStableCoin * use hardfork based on usdc oracle for devnet too * CHANGELOG * update idl --------- Co-authored-by: 0xbigz <[email protected]>
- Loading branch information
1 parent
c77b446
commit 5c256f2
Showing
34 changed files
with
1,356 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.