Skip to content

mm oracle improvements #1771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 28, 2025
Merged

Conversation

NourAlharithi
Copy link
Member

No description provided.

@NourAlharithi NourAlharithi merged commit adcae56 into nour/mm-oracle-2 Jul 28, 2025
@NourAlharithi NourAlharithi deleted the nour/safety-improvements branch July 28, 2025 20:53
NourAlharithi added a commit that referenced this pull request Jul 28, 2025
* program: new amm oracle (#1738)

* zero unused amm fields

* cargo fmt

* bare bones ix

* minimal anchor mm oracle impl

* update test file

* only do admin validate when not anchor test

* updates

* generalize native entry

* fix weird function name chop off

* make it compile for --feature cpi (#1748)

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

* more efficeint clock and state bit flags check

* vamm uses mm oracle (#1747)

* add offset

* working tests

* refactor to use MM oracle as its own type

* remove weird preface

* sdk updates

* bankrun tests all pass

* fix test

* changes and fixes

* widen confidence if mm oracle too diff

* sdk side for confidence adjust

* changelog

* fix lint

* fix cargo tests

* address comments

* add conf check

* remove anchor ix and cache oracle confidence

* only state admin can reenable mm oracle kill switch

* cargo fmt

---------

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

* fix tests (#1764)

* Nour/move ixs around (#1766)

* move around ixs

* remove message

* add devnet oracle crank wallet

* refactored mm oracle

* sdk changes + cargo fmt

* fix tests

* validate price bands with fill fix

* normalize fill within price bands

* add sdk warning

* updated type

* undefined guard so anchor tests pass

* accept vec for update amm and view amm

* adjust test to work with new price bands

* Revert "adjust test to work with new price bands"

This reverts commit ee40ac8.

* remove price bands logic

* add zero ix for mm oracle for reset

* mm oracle improvements (#1771)

* v1 safety improvements

* isolate funding from MM oracle

* add cargo tests for amm availability

* change oracle validity log bool to enum

* address comment

---------

Co-authored-by: moosecat <[email protected]>
Co-authored-by: jordy25519 <[email protected]>
@NourAlharithi NourAlharithi restored the nour/safety-improvements branch July 29, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants