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

Update solend v2 upcoming #2

Merged
merged 30 commits into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
17ee8d5
allow loan_to_value_ratio == liquidation_threshold (#85)
nope-finance May 24, 2022
d1a3c29
high rate map (#86)
nope-finance May 26, 2022
ffe29eb
adding more high rate cases
nope-finance May 27, 2022
a116cfc
fix to support higher exponent for switchboard v2 (#90)
nope-finance Jun 10, 2022
46cdf9a
trying take rate other way (#89)
nope-finance Jun 13, 2022
61ab0ce
sliding down borrow limit and 1 percent close factor (#91)
nope-finance Jun 22, 2022
3239f56
only redeem as much collateral as liquidity allows during liquidate (…
nope-finance Jul 18, 2022
2514030
undo borrow limit and close factor change and cap liquidation amount …
0xripleys Jul 20, 2022
e79ed86
test coverage github action (#94)
0xripleys Jul 22, 2022
480e855
enable github actions on commits to upcoming branch (#96)
0xripleys Jul 26, 2022
6a2d4aa
turn on liquidation fees and deprecate old liquidation instruction (#…
nope-finance Aug 16, 2022
1feaffc
bump solana to 1.9.18 (#97)
0xripleys Aug 19, 2022
aeedc87
flash loans (#95)
0xripleys Aug 31, 2022
81f34f2
bump cargo version (#103)
0xripleys Aug 31, 2022
ae47f52
make cli update only update if actually changing something and add an…
nope-finance Sep 13, 2022
1cb0135
allow 0 ltv assets to be deposited + minor cleanup (#104)
nope-finance Sep 16, 2022
075972c
Obligation_owner should be readonly (#87)
andrewsource147 Sep 16, 2022
9b7da68
allow passing just pyth to save bytes (#105)
nope-finance Sep 29, 2022
3653b74
update debt limit (#107)
nope-finance Oct 21, 2022
9b60774
0xripleys manual liquidate (#112)
0xripleys Nov 17, 2022
c602b70
fix cli for updating oracle (#114)
nope-finance Nov 22, 2022
92d38cf
Use pyth sdk + tests (#113)
0xripleys Dec 13, 2022
8594030
Create a crate, relax solana dependencies in crate (#118)
0xripleys Jan 2, 2023
affb6e4
bump solana version to 1.14 (#116)
0xripleys Jan 2, 2023
7e2aca3
Refactor and improve tests (#121)
0xripleys Jan 25, 2023
5a53f75
changing util rate calc to exclude non-claimed fees (#132)
nope-finance Mar 5, 2023
5122002
Solend v2.0.1 (#131)
0xripleys Mar 28, 2023
153bc00
div by zero fix (#138)
0xripleys Apr 10, 2023
f1f05d6
fix for withdraw case (#140)
0xripleys Apr 11, 2023
163fa1a
Merge remote-tracking branch 'upstream/upcoming' into update-solend-v…
codewithgun Apr 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 44 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
paths-ignore:
- 'docs/**'
push:
branches: [master]
branches: [master, upcoming]
paths-ignore:
- 'docs/**'

Expand Down Expand Up @@ -50,11 +50,11 @@ jobs:
- name: Set env vars
run: |
source ci/rust-version.sh
echo "RUST_NIGHTLY=$rust_nightly" >> $GITHUB_ENV
echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV

- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_NIGHTLY }}
toolchain: ${{ env.RUST_STABLE }}
override: true
profile: minimal
components: clippy
Expand All @@ -76,7 +76,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: -Zunstable-options --workspace --all-targets -- --deny=warnings
args: --workspace --all-targets -- --deny=warnings

cargo-build-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -124,3 +124,43 @@ jobs:

- name: Build and test
run: ./ci/cargo-build-test.sh

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

- name: Set env vars
run: |
source ci/rust-version.sh
echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV
source ci/solana-version.sh
echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV

- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_STABLE }}
override: true
profile: minimal

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
# target # Removed due to build dependency caching conflicts
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE }}

- name: Install dependencies
run: |
./ci/install-build-deps.sh
./ci/install-program-deps.sh
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH

- name: run test coverage
run: ./coverage.sh

- name: Codecov
uses: codecov/codecov-action@v3.1.0
with:
directory: target/coverage/
13 changes: 13 additions & 0 deletions Anchor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
anchor_version = "0.13.2"

[workspace]
members = [
"token-lending/program",
]

[provider]
cluster = "mainnet"
wallet = "~/.config/solana/id.json"

[programs.mainnet]
spl_token_lending = "So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo"
Loading