-
Notifications
You must be signed in to change notification settings - Fork 2
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
Schwartz protocol v2 #98
Merged
Merged
Conversation
This file contains 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
Fix tests
Fix collateral value not changing on computeagentdata
Schwartz10
added a commit
that referenced
this pull request
Sep 4, 2024
* Update abigenerated files * Schwartz protocol v2 (#98) * Refactor basic methods for V2 * Add AgentDebt call * Add initial framework for margin helpers * Add _fi helper methods * Refactor liquidation queries and consolidate packages * Add back tests * Small fixes * Small tweaks * Add fee debt test Fix tests * Add econ tests, bug fixes and improvements * Get rid of pool registry * Small tweaks * Add agent data helpers and tests Fix collateral value not changing on computeagentdata * Add push funds helper with protect against push to fee debt miner * Improve tests * Add test helper * More cleanup * Nix the mock ado * Delete unused constants * Add claims decoder * More cleanup * Change method name * Fix issue with agentfi using only principal when computing debt (#100) * Add back edr calc * Update abigen * Update deployments * Add poolsapi calls to econ package (#101) Still need to do interest in agentfi call * add margin and leverage ratio * handle edge cases in margin and dtl * Schwartz improvements (#102) * Update deployments * Add more api helpers and tests * More helper methods * Revert bad merge * Update abigen * Update afi with spendable balance (#106) * Fix/borrow (#107) * fix max borrow on agent fi * Create minerfi type --------- Co-authored-by: Jonathan <jpschwartz2@uwalumni.com> * fix index out of range when miner sectors are less than desired sample size (#108) * add miner that gave error on staging to test cases (#109) * add miner that gave error on staging to test cases * fix step size rounding error * change BaseFi test to MinerFi test * Add Events API endpoint to extern struct (#105) * Add Events API endpoint to extern struct Also change functions that use it to take a SDK argument so they can look up the endpoint. * Polish --------- Co-authored-by: Jonathan <jpschwartz2@uwalumni.com> * Add test github action * Fix/glifapi (#110) * Add the AgentMarginJSON struct type * Update type name * Add LiveSectors and FaultySectors to AgentMarginJSON * Update type * Potential fix for eventsapi once pools-events is redeployed Consolidate function calls to the api * Update types * Fix glifapi queries * Refactor principal and interest sdk funcs to work for v0 historically Fix tests --------- Co-authored-by: ganzai-san <ganzai@protonmail.com> Co-authored-by: ganzai <79986704+ganzai-san@users.noreply.github.com> Co-authored-by: Jim Pick <jim@jimpick.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.