-
Notifications
You must be signed in to change notification settings - Fork 159
bigz/init-lp-pool #1565
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
Open
0xbigz
wants to merge
100
commits into
master
Choose a base branch
from
bigz/init-lp-pool
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
bigz/init-lp-pool #1565
Changes from all commits
Commits
Show all changes
100 commits
Select commit
Hold shift + click to select a range
f251378
program: init lp pool
0xbigz be58c57
cargo fmt --
0xbigz 2cf149d
add total fee fields
0xbigz b2cf992
add update_target_weights math
0xbigz a405a56
program: use sparse matrix for constituent map and update tests
0xbigz 34b044c
zero copy accounts, init ix (#1578)
wphan 5d3fd5e
update accounts (#1580)
wphan 9826453
zero copy + permissionless crank ixs (#1581)
NourAlharithi b7e0cab
program: support negative target weights for borrow-lend
0xbigz 57b4ec2
fix tests to work with zero copy
NourAlharithi 81dd06e
few comment changes
NourAlharithi 73b32d5
remove discriminator from impl macro
NourAlharithi afdfe7b
add get_swap_amount, get_swap_fees, get_weight (#1579)
wphan 9383688
fix swap fee calc (#1582)
wphan 007bace
add init amm mapping to lp context (#1583)
NourAlharithi 10d070e
init constituent
NourAlharithi 6cd4254
Merge pull request #1584 from drift-labs/nour/init-constituent
NourAlharithi 1d7fd00
add initializeLpPool test (#1585)
wphan be22c24
add add datum ix
NourAlharithi ffd6a51
Merge branch 'bigz/init-lp-pool' into nour/add-mapping-datum
NourAlharithi 188ab4e
add init tests and invariant checks
NourAlharithi 6353b62
Merge pull request #1587 from drift-labs/nour/add-mapping-datum
NourAlharithi f450cb2
rename data to more useful names
NourAlharithi c803c16
dlp use spl token program (#1588)
wphan f7fac79
add crank ix
NourAlharithi 6bbe40d
update total_weight for validation_flags check
0xbigz 55014a0
push test so far
NourAlharithi 4b13618
overriding perp position works
NourAlharithi 39726c5
remove message
NourAlharithi 222a335
Merge pull request #1589 from drift-labs/nour/crank-constituent-targe…
NourAlharithi bddb41f
fix dup total_weight add
0xbigz 495977f
constituent map remaining accounts
NourAlharithi 014b4a3
compiles
NourAlharithi 228b94b
bankrun tests pass
NourAlharithi 0b7049c
compiles but casting failure in overflow protection test
NourAlharithi 9372702
address comment and change token arguments from u64 to u128
NourAlharithi 9addd8c
bankrun tests pass
NourAlharithi 33dbe08
Merge branch 'nour/crank-aum' into nour/remove-amm-mappings
NourAlharithi 5d6f15f
Merge pull request #1595 from drift-labs/nour/remove-amm-mappings
NourAlharithi e950e5d
init constituent token account (#1596)
wphan f145aa1
update aum calc
NourAlharithi 4c8a721
add update /remove mapping ixs
NourAlharithi 16ab911
Merge branch 'bigz/init-lp-pool' into nour/crank-aum
NourAlharithi b6ec47c
Merge pull request #1593 from drift-labs/nour/crank-aum
NourAlharithi 3923458
fix test - init constituent spot market
wphan 11fed5f
add crank improvements
NourAlharithi 8721f9b
crank improvements
NourAlharithi a059f00
passes tests
NourAlharithi cbf3395
precision fix crank aum
NourAlharithi a7830f4
precision fixes and constituent map check for account owner
NourAlharithi 420b85f
Merge pull request #1598 from drift-labs/nour/crank-aum-improvements
NourAlharithi 1c24027
add passthrough account logic (#1602)
NourAlharithi cb34da4
Wphan/dlp-swap-ixs (#1592)
wphan 4974540
Merge branch 'master' into bigz/init-lp-pool
wphan 2589040
post-merge fixes
wphan 961d6ed
store bumps on accounts (#1604)
NourAlharithi 9bfbab1
address comments
NourAlharithi b363288
Merge pull request #1611 from drift-labs/nour/address-comments
NourAlharithi dce2442
Wphan/add liquidity (#1607)
wphan 8f19f61
program: lp-pool-to-use-target-base-vector (#1615)
0xbigz acab7f5
add beta and cost to trade in bps to target datum
NourAlharithi 9f99b1d
add more tests
NourAlharithi ec2e2f0
Merge pull request #1617 from drift-labs/nour/beta-cost-to-trade
NourAlharithi db3ad52
add fields to LP events, fix tests (#1620)
wphan b9efc52
dlp jup swap (#1636)
NourAlharithi ee50a60
cleanup
NourAlharithi 1f70026
transfer oracle data ix to constituent (#1643)
NourAlharithi 83e22ec
big cargo test (#1644)
NourAlharithi e980aa7
derivative constituents + better testing + bug fixes (#1657)
NourAlharithi 2ae54d1
deposit/borrow working and changing positions (#1652)
NourAlharithi b1fb7a8
sdk: allow custom coder
wphan 81e442a
program: dlp add upnl for settles to amm cache (#1659)
0xbigz d374e55
remove unused accounts coder
wphan a4a2f02
move customCoder into sdk, lint
wphan 0871d9d
testing: ix: settle perp to dlp, insufficient balance edge case and i…
NourAlharithi 34e9f99
added more settle test coverage and squash bugs (#1689)
NourAlharithi feda828
dlp: add constituentMap (#1699)
wphan 71db8bf
Nour/gauntlet fee impl (#1698)
NourAlharithi 7a94a4a
update aum considers amm cache (#1701)
NourAlharithi f5d5a4f
prettify (#1702)
NourAlharithi 30fe08f
Wphan/merge master dlp (#1703)
wphan bd615ea
slot staleness checks (#1705)
NourAlharithi b41cd6e
Nour/derivative constituent testing (#1708)
NourAlharithi 7efab3e
merge
crispheaney c00ebb6
Merge branch 'master' into bigz/init-lp-pool
wphan 4fe3146
Merge branch 'master' into bigz/init-lp-pool
wphan d5643a1
remove incorrect usage of nav
wphan 6cfa245
Merge remote-tracking branch 'origin/bigz/init-lp-pool' into bigz/ini…
wphan 8be6977
fix adminClient and tests
wphan 99b52ac
Nour/fee grid search testing (#1714)
NourAlharithi 6e6813a
Nour/address comments (#1715)
NourAlharithi 84569d6
add swap fee unit tests (#1713)
wphan 9ebb39a
Nour/settle accounting (#1723)
NourAlharithi bac790e
dont update lp quote owed unless collateralized
NourAlharithi 0e9a454
Nour/settle testing (#1725)
NourAlharithi c5ccdea
prettify
NourAlharithi 464e1d3
Nour/address more comments (#1726)
NourAlharithi 19c88f8
refactor update_aum, add unit tests (#1727)
wphan b8a8030
Nour/parameterize dlp (#1731)
NourAlharithi a3e2ee0
Merge branch 'master' into bigz/init-lp-pool
NourAlharithi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isnt mainnet usdc?