Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@acamill
Copy link
Member

@acamill acamill commented Mar 24, 2022

Merged branches to start the global testing, please feel free to audit separately and comment on each PR although it's closed

Screenshot 2022-03-24 at 20 34 33

Misc :

  • Use latest mango blockworks-foundation/mango-v3@v3.4.0...v3.4.2
  • More liberal with the Solana program version to compat with Mango/Switchboard
  • Removed the check for depository version as the migration has been removed now (detected with upgrade program test)
  • cargo fmt
  • remove soteria script on the free version as it was borked. We run the premium each time now.

@acamill acamill added the enhancement New feature or request label Mar 24, 2022
@acamill acamill added this to the Soteria Audit milestone Mar 24, 2022
@acamill acamill self-assigned this Mar 24, 2022
* Add perp_market account check during validation step. We want to

* == insteadf of != for the `validate_perp_market_mint_matches_depository_collateral_mint`

* Update changelog
* Remove passthrough usage from Mint instruction

* Remove the passthrough account in redeem

* Remove passthrough accounts from rebalance instruction

* Remove passthrough accounts from insurance withdraw/deposit

* Refactor
- remove all passthrough
- merge insurance and quote mint, to prevent migration
- free up some space in the onchain accounts
- remove migrate instruction

* Update client
@acamill
Copy link
Member Author

acamill commented Mar 25, 2022

Sol test suite
Screenshot 2022-03-25 at 15 37 24

Soteria Premium auto audit report : (30 unchecked accounts)
Screenshot 2022-03-25 at 15 39 18

Specifically rebalancing :
Screenshot 2022-03-25 at 15 45 05

Tested to deploy the current version (v2.4.0) and then upgrade to this program and monitor for issues :

  • deployed new v2.4.0 program (as in prod currently) BA67esrWE7cPzQWtAftaTbrVWtmHZJ1PbbBBpZgpjH4p
  • ran test for BTC and SOL (and init ETH)
    State as of 2.4.0 :

Screenshot 2022-03-25 at 16 52 29

  • using same program, upgrade to 3.0.2 and run tests
    • Found issue with the forgotten check about the depository version that was for the migration instruction (now refactored and removed) - Fixed

Screenshot 2022-03-25 at 17 07 12

Working rebalancing after fix

Screenshot 2022-03-25 at 17 08 10

State after program upgrade and test running (Insurance amount deposited is high cause I interrupted the deposit/withdraw test in between.
Screenshot 2022-03-25 at 17 08 55

All test passing.
Screenshot 2022-03-25 at 17 11 54

All good on my end 👍 waiting for your feedback guys, let's talk during tomorrow call

acamill added 2 commits March 25, 2022 17:14
…egard test failing, next branch 3.1.0 has fully reworked test E2E. I'll merge these changes now and tests there.
@acamill acamill merged commit e95bd21 into main Mar 29, 2022
@acamill acamill mentioned this pull request Apr 1, 2022
4 tasks
@acamill acamill deleted the acam/soteria-audit branch April 21, 2023 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants