-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reorder tests.cairo * formatting * added test for bidding when reserve price is 0 * divide with precision in option round * created divide_with_precision helper * integrated divide_with_precision into tests/files * added unsold liquidity to option round instead of vault * updated precision to 100 points * formatting * added withdrawal queueing started some prelim tests * formatting * comment rm * refactored logic to be simpler * bug fix and remove old code * cleaned option contract more * added additional test for withdraw queues * remove old comments, added clarity comments * update entry point names * added realize position helper function * updated entry point name and storage var - withdraw_stashed_liquidity -> claim_queued_liquidity - lp_stashes: (bool, u256) -> u256 * copied Sameer's GH changes so it will be on dev * updated queue_withdrawal params added amount so that the user can select the portion they want stashed once the round settles, and can overwrite if they want to update this value * formatting * increase gas limit on test * added amount to interface for queue_withdrawal * update vault contract - re-order functions in impl - updated queueing to take in the an amount param - re-defined/re-factored internal helper functions - simplified external functions * fix gas usage bug in test * fix bug in test * simplify conditional exits * refine logic * refine * bug fix in test * update storage var names and entry point names * bug fix * added range assertions - assert if a == b +- range * rm divide with precision * updated decimals to 0 in option erc20 * added get_lp_queued_balance(s) to facade * added get_lp_starting_balance to vault * cleaned vault contract rm divide with precision rm old comments re order logic * fixed defaul mk agg params in setup * added withdrawal queue tests * added error for queueing > 100% position starting value * updated params for 2 getters get_lp_queued_balance & get_total_queued_balance now accept round_ids * added events and event tests for withdraw_queued & claim_queued_liquidity * update naming for event * update ABIs * added internal helper and fixed / 0 bug * formatting * cleaned market agg interface reserve price, cap level, & volatility are now stored by round instead of time range TWAP is still time range * fixed settlement price being too small in tests * started logic for calculating strike price on chain added tests as well * fix general helper to avoid sub overflow * Update setup.cairo refined logic for setting default values for mock market aggregator created function to deploy vault facades with a custom VaultType * Update contract.cairo - update connection to mk agg - broke apart deploying first round vs next round (for now) * update abis * Update smoke tests * Smoke Tests fix --------- Co-authored-by: Dhruv Gupta <[email protected]>
- Loading branch information
1 parent
7e07335
commit c9a8798
Showing
54 changed files
with
3,230 additions
and
1,685 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
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.