Skip to content

Conversation

piobab
Copy link
Collaborator

@piobab piobab commented Sep 14, 2023

No description provided.

pacmanifold and others added 30 commits July 20, 2023 20:27
Co-authored-by: Gabe Rodriguez <grod220@gmail.com>
Co-authored-by: Piotr Babel <piotr.babel@gmail.com>
Co-authored-by: brimigs <85972460+brimigs@users.noreply.github.com>
* New params for dynamic LB and CF (#16)

* Add dynamic LB and CF params.

* Add validators for dynamic lb.

* Add tests for dynamic lb and cf.

* Update schemas.

* Update validation for THF.

* Review fixes.

* Bump params ver.
* Add ActionKind to differentiate origin for querying prices.

* Pyth v2 impl.

* Refactor.

* Bump deps.

* Fix deploy.
* Read asset params from remote contract.

* Fix tests.

* Fix tests.

* Fix integration tests.

* Fix clippy.

* Fix tests.

* Remove close_factor. Use external contract.

* Update schema.

* Clean comment.

* Update to latest mars-params version.

* Include mars-params wasm file in github pipeline.

* Update downloading artifacts.

* Fix build.
* New dynamic liquidation mechanics.

* Extract liquidation to sperate crate.

* Disable test coverage.
* Add account_id for rover deposit rewards.

* Use user addr and account id as compound key.

* Apply comments.
Fix: Use `NeutronMsg::IbcTransfer` for neutron reward collector
Create readme for setting up Neutron multisig
…config-response

Update cw2 naming and config response
* add credit manager to address provider

* extract interest rate logics to a separate library

* query to return `None` on nonexistent market

* add `total_deposit` query to mars-params

* check total deposit when user deposits

* add debt to mock querier

* mock querier to return `Option<Market>`

* add test for computing total deposit

* add total deposit to mock params querier

* Move deposit_cap from RedBank struct in params contract.

---------
Co-authored-by: piobab <piotr.babel@gmail.com>
larry0x and others added 25 commits August 5, 2023 14:47
* include deposit cap in total deposit query

* update schema and typescript types
* Bump deps.

* Remove artifacts workflow.

* Fix docker for optimizer.
* Fix reclaim.

* Add test for deposit and withdraw for credit manager.
* Add checks for denoms in price source setup.

* Fix audit warn.

* Remove unused error type.
* Enable test coverage.

* Merge test files to reduce number of crates generated.

* Fmt.

* Remove unused comments.

* Ignore audit for test-tube.
* Add liquidation_related flag for withdraw. It is used by credit manager to indicate liquidation.

* Add tests.
* Use correct contract naming during migration.

* Use --locked for grcov install.
* Validate slopes for ir model.

* Update doc in ir model to be consistent with impl.

* Update schema.
* Add pagination with metadata.

* Fix return type.

* Address comments.

* Add test case for v2 query.

* Update schema.
* add-whitelist

* Fix whitelist. Update tests.

---------

Co-authored-by: brimigs <migliacciobri@gmail.com>
* Incentives migration.

* Add tests for migration.

* Copy helpers for incentives from v1.0.0 tag. Update schema.
* Revert on_behalf_of. It is used by another app.

* Don't allow to use on_behalf_of by credit manager contract.

* Fix on_behalf_of check.
* Handle edge case during liquidation when MDR < 0.

* Should be possible to liquidate even if HF decrease after liquidation.

* Move variable to if block.
@piobab piobab marked this pull request as ready for review September 14, 2023 08:10
@piobab piobab requested a review from dancreee September 14, 2023 08:10
@piobab piobab merged commit f4f10f2 into master Sep 14, 2023
@piobab piobab deleted the release/mars-v2 branch October 5, 2023 12:09
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.

6 participants