Skip to content

Conversation

@moosecat2
Copy link
Member

No description provided.

moosecat2 and others added 24 commits July 23, 2025 18:18
* 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]>
* move around ixs

* remove message
@moosecat2 moosecat2 changed the base branch from master to nour/safety-improvements July 26, 2025 21:01
Base automatically changed from nour/safety-improvements to nour/mm-oracle-2 July 28, 2025 20:53
Base automatically changed from nour/mm-oracle-2 to master July 28, 2025 22:21
@moosecat2 moosecat2 merged commit 2c73315 into master Jul 29, 2025
10 of 11 checks passed
@moosecat2 moosecat2 deleted the nour/validate-fill-change branch July 29, 2025 18:13
@moosecat2 moosecat2 restored the nour/validate-fill-change branch July 29, 2025 19:09
@moosecat2 moosecat2 deleted the nour/validate-fill-change branch September 16, 2025 23:20
0xbigz pushed a commit that referenced this pull request Sep 23, 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

* v1 safety improvements

* isolate funding from MM oracle

* add cargo tests for amm availability

* change oracle validity log bool to enum

* address comment

* make validate fill direction agnostic

* fix liquidate borrow for perp pnl test

* fix tests and address comments

---------

Co-authored-by: jordy25519 <[email protected]>
harsh4786 pushed a commit to harsh4786/drift-v2 that referenced this pull request Oct 23, 2025
* program: new amm oracle (drift-labs#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 (drift-labs#1748)

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

* more efficeint clock and state bit flags check

* vamm uses mm oracle (drift-labs#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 (drift-labs#1764)

* Nour/move ixs around (drift-labs#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

* v1 safety improvements

* isolate funding from MM oracle

* add cargo tests for amm availability

* change oracle validity log bool to enum

* address comment

* make validate fill direction agnostic

* fix liquidate borrow for perp pnl test

* fix tests and address comments

---------

Co-authored-by: jordy25519 <[email protected]>
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