Skip to content
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

Mars v2 ntrn release #420

Merged
merged 62 commits into from
Jul 2, 2024
Merged

Mars v2 ntrn release #420

merged 62 commits into from
Jul 2, 2024

Conversation

piobab
Copy link
Contributor

@piobab piobab commented Jul 2, 2024

No description provided.

bobthebuidlr and others added 30 commits April 23, 2024 13:39
* Acc creation in update credit account msg.

* Create new account in  msg.

* Update schema.
…idity-and-underlyingdebt-into-the-markets

v2 market(s) query: add underlying collateral and debt
* Add xyk lp pricing for astro.

* Init test cases for astro xyk.

* Update xyk lp test cases.

* Move xyk pricing to common file.

* Update schema.

* Rename package.

* Remove duplicated comments.
* Remove credit lines.

* Fix test builds.

* Fix tests.

* Update schema.

* Remove unused errors.

* Update liquidation test cases.

* Return better errors.

* Bump cosmwasm std.
…d-into-positions

Mp 2185 combine accountkind into positions
…for-totaldeposit-or-combine-with

add `all_total_deposits_v2`
* Init astro zapper.

* Clean up CW20.

* Pass astro params to zapper.

* Use Astro token factory version.

* Use Astro pools.

* Rename zapper.

* Fix tests.

* Bump astro rc release. Make build happy.

* Fix todo.

* Extract pair addr from lp denom.

* Remove custom astro params for zapper.
* Allow to deposit and swap any asset.

* Update Health computer to allow not whitelisted/supported assets.

* Update schema.

* Fix test.

* Update contracts/credit-manager/tests/tests/test_deposit.rs

Co-authored-by: Bob van der Helm <[email protected]>

* Update contracts/health/tests/tests/test_health_values.rs

Co-authored-by: Bob van der Helm <[email protected]>

* Review comment.

---------

Co-authored-by: Bob van der Helm <[email protected]>
* AP migration.

* Update ntrn migration.

* Incentives migration.

* Swapper migration.

* Fix migration.

* Remove unused config from incentives.

* Update schema.
* Use custom token_id for new NFT.

* Add test cases for account-nft.

* CM test cases for new type of account create.

* Update schema.

* Don't overlap with automatically generated token_id.
* Add FundManager account.

* Extract function.

* Add validate for fund manager vault addr.

* Add tests.

* Extend test cases for fund manager.

* Update schema.

* Add test for unauthorized addr. Fix clippy.

* Cover FundManager account in health scenarios.
piobab and others added 24 commits June 3, 2024 18:04
* Init perf fee impl.

* Withdraw perf fee.

* Performance fee tests.

* Compare with perf state.

* Use new perf fee after withdraw.

* Add spreadsheet with perf fee scenarios.

* Perf fee withdraw errors tests.

* Update test to check if fee is applied every 1h.

* Validate perf fee config.

* Cleanup.

* Update schema.

* Don't subtract mgmt fee when deposit/redeem.

* Fix comment.
* Clean fixme.

* Bump JS deps.

* Fix deployment.

* Bump cw deps.
* feat: stake lp in astroport incentives

* tidy

* move mars / astroport incentives to individual files

* correctly add files for previous commit

* fmt

* fix tests

* add missing import

* don't swallow errors, update naming

* update credit_manager assertion

* credit manager astroport incentives implementation

* fix lp rewards query

* Mock astroport incentives dependency

* tidy structure

* astro_lp incentives integration test

* add lp rewards query

* tidy

* additional tests

* fmt

* add cm tests for astro incentives

* Fix astro deps in incentives.

* add rewards recieved to event attributes

* fix - increment not decrement

* error if lp balance lt requested

* improve tests

* fix staking issue

* add unstake tests

* Add staked lp to account collateral

* clippy + fmt

* schema

* fix deps

* add staked lp to positions

* remove redundant code

* improve test coverage

* generate types

* add incentive query tests

* naming

* generate schema

* comments

* add incentives documentation (#399)

* add incentives documentation

* remove todo

* better error handling

* rename files

* add rewards as attribute

* improve naming, attributes on response

* improve test_claim_lp_rewards

* improve test_stake_astro_lp

* improve test_unstake_astro_lp

* improve test_querying

* small fixes and naming

* improve test_astro_lp_incentives

* more naming

* improve tests

* update types

* merge 'dev' into MP-2347-integrate-astro-staking

* updated types

* Reorder in tests.

* Rename claming test case for astro.

---------

Co-authored-by: piobab <[email protected]>
* Astro LP liquidation.

* StakedLp liquidation test cases.

* Review comments.

* Rename to staked_astro_lps.

* Update schema.
* Remove unused code.

* Query for vault bindings.

* Code reorganization.

* Naming consistency.

* Perf fee naming cleanup.

* Update schema.

* Update schema.
Merge master to dev. Bump rust. New pion deployment.
* Update pion-1 deployment.

* Add PCL lp config.

* Fixes to deployment.

* Use astro v5 for oracle.

* Use astro v5 for swapper.

* New deployment.

* PCL LP should not be borrowable.
* Update unlocks state key.

* Update test cases.

* Update schema.

* Update comment.
* Fix Oak no. 1 - liquidatees staking rewards.

* Ignore audit warn.

* Remove file.
* fix: incorrectly adding to lp amount rather than subtracting

* improvements
* Oak 11 - add consistency to type conversion.

* Oak 13 - fix comment.

* Oak 15 - unnecessary addr lookup.

* Oak 17 - remove redundant code.
* fix: handle staking when no lp has yet been staked

* improve comments

* improve test
* Claim rewards to the account.

* HLS - allow to keep non-correlated deposits.

* Update HLS rule for staked astro lp.

* Update schema.

* Refactor HLS collaterals.

* Review comments.

* Ignore audit warn.
* Add astroport incentives check for lp deposits.

* Update deposit test case.

* Update paginated deposit cap.

* Update Astro incentives mock contract.

* Provide liquidity deposit cap check.

* Update comment.
* add staked lp to prop tests

* add astro_lp_coin generation to prop tests

* Format

---------

Co-authored-by: piobab <[email protected]>
@piobab piobab merged commit 0499bb9 into master Jul 2, 2024
5 checks passed
@piobab piobab deleted the dev branch August 21, 2024 13:40
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