-
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.
* updated vault events * increase gas limit for test * added sanity test * update test to match contract precision * remove premiums collected storage var and getters * removed old function * major simplification to vault contract logic - update_position() before deposit, withdraw, and queue withdraw - instead of collecting from premiums, when a position is refreshed, and non moved premiums/unsold liq are flagged as moved and added to the account's upcoming round deposit * typo * event updates * update round deployed event and cleaned function * removed precision const * updated withdrawal queueing getter & setters Instead of passing the amount of starting liq to queue, users pass the BPS they want to queue. When fetching their current queue status, now they are returned BPS instead of starting amount being queued for * updated tests to work with no entry points * update entry point name to make sense * update withdrawal queued event to emit bps also touched up comments * bug fix
- Loading branch information
1 parent
c9a8798
commit 801fda5
Showing
13 changed files
with
528 additions
and
607 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
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
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.