Skip to content

Commit

Permalink
V2.0.2 (solana-labs#153)
Browse files Browse the repository at this point in the history
* try running CI on big runners (solana-labs#126)

* pack / unpack unit tests (solana-labs#135)

* Isolated Tier Assets (solana-labs#134)

* socialize loss feature (solana-labs#136)

* Liquidation changes (solana-labs#139)

* fully liquidate obligation liquidity if borrow value is < 1 and
correctly handle dust

* cap forgiveness amount wrt ctoken ratio (solana-labs#144)

* On liq, assets must be repaid in order of borrow weight (decending) (solana-labs#141)

* highest borrow weight liquidity must be repaid first

* order borrows by (borrow weight, mint pubkey) and don't convert borrow
weight to decimal

* risk authority (solana-labs#142)

* added risk authority to lending market, setLendingMarketOwnerAndConfig
instruction, and fixed tests

* modified update_reserve_config to use risk authority + tests

* update comment math and handle program upgrade case for risk authority

* add back compute units to tests (solana-labs#150)

* adding compute unit limits

* adding back compute units to test

* Trilinear interest rates (solana-labs#149)

* trilinear interest rates

* edge case handling in Reserve::unpack

* rename unhealthy utilization rate to max utilization rate

* pr comment

* Onchain metadata (solana-labs#151)

* metadata

* metadata

* making LendingMarketMetadata zero copy

* add lookup tables

* review fixes

* verify serialized tx size

---------

Co-authored-by: 0xripleys <0xripleys@solend.fi>

* 0xripleys dynamic liquidation bonus (solana-labs#147)

* dynamic liquidation bonus

* changing the behavior of protocol_liquidation_fee

* comment add

* tests for calculate protocol liquidation fee

* adding more safeguards wrt bonus checking

* add tests that use protocol_liquidation_fee

* fix tests

* PR fixes

* changing protocol liquidation fee to be denominated in deca bps

* support max borrows/withdraws (solana-labs#148)

* support max withdraw and borrow

* changing function signature of a test helper fn

* tests for borrow/withdraw max on rate limiter

* rebase fixes

* PR fixes

* rate limiter test fixes + fmt

* audit fixes (solana-labs#154)

* audit fixes

* add test for refresh obligation filtering

* moar audit fixes

* break borrow weight tiebreaks by reserve pubkey, not mint (solana-labs#158)

* fix version numbers, add name to library (solana-labs#159)

* cli changes (solana-labs#155)

* cli changes

* cli fixes + adding subcommands to view accounts

* clippy fixes

* fix CI error

---------

Co-authored-by: nope <83512286+nope-finance@users.noreply.github.com>
  • Loading branch information
0xripleys and nope-finance authored Aug 8, 2023
1 parent 450d737 commit 38ee67e
Show file tree
Hide file tree
Showing 42 changed files with 4,887 additions and 676 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-token-lending.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
cargo-test-bpf:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
run: ./ci/cargo-build-test.sh

cargo-coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v2

Expand Down
8 changes: 5 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ci/cargo-test-bpf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ source ./ci/solana-version.sh
export RUSTFLAGS="-D warnings"
export RUSTBACKTRACE=1


usage() {
exitcode=0
if [[ -n "$1" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion ci/install-program-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -x
cargo --version
cargo install rustfilt || true
cargo install honggfuzz --version=0.5.52 --force || true
cargo +"$rust_stable" install grcov --force
cargo +"$rust_stable" install grcov --version=0.8.18 --force --locked

cargo +"$rust_stable" build-bpf --version
rustup component add llvm-tools-preview
3 changes: 2 additions & 1 deletion token-lending/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = "https://solend.fi"
license = "Apache-2.0"
name = "solend-program-cli"
repository = "https://github.com/solendprotocol/solana-program-library"
version = "0.1.0"
version = "2.0.2"

[dependencies]
clap = "=2.34.0"
Expand All @@ -20,6 +20,7 @@ solend-sdk = { path="../sdk" }
solend-program = { path="../program", features = [ "no-entrypoint" ] }
spl-token = { version = "3.3.0", features=["no-entrypoint"] }
spl-associated-token-account = "1.0"
solana-account-decoder = "1.14.10"

[[bin]]
name = "solend-program"
Expand Down
Loading

0 comments on commit 38ee67e

Please sign in to comment.