Skip to content

Commit

Permalink
V3.3.0 (#91)
Browse files Browse the repository at this point in the history
* Add instructions for closing a mango account

* Check owner account is signer

* Use checked functions to load mango accounts

* add wip create_dust_account and resolve_dust

* Make resolve_dust fail silently

* Add max account checking

* Add upgrade mango account instruction

* Update version

* Run cargo fmt

* Fix instruction number, make owner read, fix padding

* added cancel_all_side functions to mathcing

* added cancel_perp_orders_side; haven't tested

* added not_upgradable flag to MangoAccount and amended InitMangoAccount to set that flag to true.

* logging for cancel all perp orders; get_complete_base_pos for reduce only check

* complete_base_pos for trigger order exec as well

* added changelog

* fixed check enter bankruptcy bug

* added deploy time

* merged in v3.2.12 and updated cancel_side to do logging

* Most code review changes, check dust account health

* Remove whitespace

* changed dust_account owner to admin

* make resolve_dust not take in OpenOrders for DustAccount because it doesn't have any; Add more checks for MangoAccount in resolve_dust

* merged in main v3.2.13

* do in_margin_basket check in CloseSpotOpenOrders

* do in_margin_basket check in CloseSpotOpenOrders

* small edits to errors

* upgrade anchor and packages

* added some additional info to PlacePerpOrder in instruction.rs

* mc/add alternative authority which cant withdraw (#97)

* Support account delegation, delegate should be able to trade, but not withdraw assets to his own wallet

Signed-off-by: microwavedcola1 <[email protected]>

* comment

Signed-off-by: microwavedcola1 <[email protected]>

* comment

Signed-off-by: microwavedcola1 <[email protected]>

* comment

Signed-off-by: microwavedcola1 <[email protected]>

* newline

Signed-off-by: microwavedcola1 <[email protected]>

* bump solana in tests

Signed-off-by: microwavedcola1 <[email protected]>

* cargo-fmt

Signed-off-by: microwavedcola1 <[email protected]>

* bump rust

Signed-off-by: microwavedcola1 <[email protected]>

* fix solana verison

Signed-off-by: microwavedcola1 <[email protected]>

* linter

Signed-off-by: microwavedcola1 <[email protected]>

* note

Signed-off-by: microwavedcola1 <[email protected]>

* typo

Signed-off-by: microwavedcola1 <[email protected]>

* changed name from alternative_authority to delegate to be consistent with Solana naming and more accurate

Co-authored-by: dd <[email protected]>

* Fixes from code review

Signed-off-by: microwavedcola1 <[email protected]>

* Tests: Fix program log output

The log scope for these changed in solana 1.9

* Remove unnecessary owner check

* fix: remove not used account from ix interface spec

* Fix instruction builder, owner will pay, and his lamports would need to be adjusted

Signed-off-by: microwavedcola1 <[email protected]>

* implement price limit in place_spot_order and place_spot_order2

* remove print

* CI: add apt-get update (#116)

Installing libudev-dev failed

* README: Document branches (#114)

* remove a todo; cleanup devnet_deploy.sh

* mc/change spot market params (#110)

* Soteria and Cargo Audit Automation (#106)

* Create audit.toml

Cargo audit configuration file

* Create ci-cargo-audit.yml

Action to build and run cargo audit using arguments from the .cargo/audit.toml file

* Update and rename program.yml to ci-lint-test.yml

Minor name changes and addition of Soteria

* Update ci-lint-test.yml

update environment settings

* Update ci-lint-test.yml

adding apt-get update as the job fails to find packages

* Update ci-cargo-audit.yml

* Ignore tokio upstream vuln

Reported to Solana for upstream patching

* impose price limits (#108)

* impose price limits

* update deploy time

Co-authored-by: dd <[email protected]>

* checked math in all areas touched by place_perp_order (#109)

* checked math in all areas touched by place_perp_order

* update deploy time

* update deploy time

Co-authored-by: dd <[email protected]>

* change_spot_market_params

Signed-off-by: microwavedcola1 <[email protected]>

* linter

Signed-off-by: microwavedcola1 <[email protected]>

* in ci, perform apt-get update to prevent failure to install apt packages

Signed-off-by: microwavedcola1 <[email protected]>

* fix from review

Signed-off-by: microwavedcola1 <[email protected]>

* remove a todo; cleanup devnet_deploy.sh

Co-authored-by: silas <[email protected]>
Co-authored-by: dafyddd <[email protected]>
Co-authored-by: dd <[email protected]>

* fix integer overflow issue in get_total_native_borrow

* update changelog.md

* optimize create_dust_account

* added some checked math in execute_perp_trigger_order where dealing with bids_quantity

* Do pyth price filtering only on mainnet

* Add CreateSpotOpenOrders

* add tests for CreateSpotOpenOrders

* upgrade anchor version to 0.20.1

* update deploy time

Co-authored-by: Riordan Panayides <[email protected]>
Co-authored-by: dd <[email protected]>
Co-authored-by: microwavedcola1 <[email protected]>
Co-authored-by: microwavedcola1 <[email protected]>
Co-authored-by: Christian Kamm <[email protected]>
Co-authored-by: Jakob Povšič <[email protected]>
Co-authored-by: silas <[email protected]>
  • Loading branch information
8 people authored Jan 17, 2022
1 parent 1b1e8dd commit 3583fa1
Show file tree
Hide file tree
Showing 28 changed files with 2,527 additions and 925 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ program/target
common/target
mango-macro/target
target

.idea
2 changes: 1 addition & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
anchor_version = "0.18.0"
anchor_version = "0.20.1"

[workspace]
members = [
Expand Down
Loading

0 comments on commit 3583fa1

Please sign in to comment.