Skip to content

Commit f4f10f2

Browse files
authored
Merge pull request #326 from mars-protocol/release/mars-v2
Mars V2
2 parents 1dd8fc5 + f55cfb5 commit f4f10f2

File tree

279 files changed

+18023
-6336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+18023
-6336
lines changed

.cargo/audit.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reference: https://github.com/rustsec/rustsec/blob/main/cargo-audit/audit.toml.example
2+
3+
[advisories]
4+
# Ignore the following advisory IDs.
5+
# RUSTSEC-2022-0093 is reported for test-tube which is only used for testing.
6+
ignore = ["RUSTSEC-2022-0093", "RUSTSEC-2023-0052"]

.github/workflows/artifacts.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/coverage.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,15 @@ jobs:
2525
- name: Install stable Rust
2626
run: cargo make install-stable
2727

28-
# selecting a toolchain should happen before the plugin, as the cache uses the current rustc version as its cache key
29-
# - name: Cache dependencies
30-
# uses: Swatinem/rust-cache@v2
31-
3228
# Artifacts used by tests
3329
- name: Compile workspace
3430
run: cargo make build
3531

36-
- name: Run test
37-
run: cargo make test
38-
39-
# disabled because of "no space left" error.
40-
# - name: Run test coverage
41-
# run: cargo make coverage-lcov
32+
- name: Run test coverage
33+
run: cargo make coverage-lcov
4234

43-
# - name: Upload coverage to Codecov
44-
# uses: codecov/codecov-action@v3
45-
# with:
46-
# token: ${{ secrets.CODECOV_TOKEN }}
47-
# files: target/coverage/lcov.info
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v3
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}
39+
files: target/coverage/lcov.info

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## v1.2.0
6+
7+
- Allow Credit account to lend/reclaim to the Red Bank (calls Deposit/Withdraw in Red Bank), claim incentive rewards from lending to the Red Bank (pass account_id to track Credit Manager users in `red-bank` and `incentives` contract).
8+
- Pyth oracle price sourcing support for EMA, confidence. Different price query for liquidation and other actions (Deposit / Borrow / Repay etc.).
9+
- New liquidation mechanism on Red Bank and Credit Manager to allow variable liquidation bonus and close factors (similar to Euler model).
10+
- Previously Red Bank and Credit Manager had separate deposit caps to protect against holding to many assets in relation to chain liquidity - consolidated these deposit caps into one `params` contract.
11+
- Common `swapper` contract for Red Bank and Credit Manager.
12+
- Credit Manager and Red Bank use `params` contract for common asset params (see new [types](/contracts/params/src/types)). Previous `Market` / `Markets` queries has changed - part of the params are moved to `params` contract (see [diff](./files/types_diff_v1_0_0__mars_v2.txt)).
13+
514
## v1.0.0-rc0
615

716
This section documents the API changes compared to the Terra Classic deployment, found in the [`mars-core`](https://github.com/mars-protocol/mars-core) repository. This section is **not comprehensive**, as the changes are numerous. Changelog for later version start here should be made comprehensive.

0 commit comments

Comments
 (0)