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

Wrapper liq program #164

Closed
wants to merge 13 commits into from
Closed

Wrapper liq program #164

wants to merge 13 commits into from

Conversation

0xripleys
Copy link

wrapper program that aborts if liquidator receives ctokens on liquidations

@codecov-commenter
Copy link

codecov-commenter commented Aug 31, 2023

Codecov Report

Attention: 81 lines in your changes are missing coverage. Please review.

Comparison is base (77dc842) 83.58% compared to head (3f37181) 85.66%.

Files Patch % Lines
token-lending/program/src/processor.rs 92.21% 25 Missing ⚠️
token-lending/sdk/src/oracles.rs 82.14% 15 Missing ⚠️
token-lending/cli/src/main.rs 0.00% 11 Missing ⚠️
token-lending/cli/src/lending_state.rs 0.00% 6 Missing ⚠️
token-lending/sdk/src/state/reserve.rs 98.60% 6 Missing ⚠️
...-lending/program/tests/helpers/mock_switchboard.rs 93.15% 5 Missing ⚠️
token-lending/sdk/src/instruction.rs 97.14% 5 Missing ⚠️
token-lending/wrapper/src/processor.rs 97.43% 5 Missing ⚠️
...nding/program/tests/helpers/solend_program_test.rs 98.23% 2 Missing ⚠️
...nding/program/tests/borrow_obligation_liquidity.rs 95.45% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           upcoming     #164      +/-   ##
============================================
+ Coverage     83.58%   85.66%   +2.08%     
============================================
  Files            50       56       +6     
  Lines         18712    21882    +3170     
============================================
+ Hits          15640    18745    +3105     
- Misses         3072     3137      +65     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

0xripleys and others added 11 commits December 13, 2023 17:37
* oracle price multiplier

* changing added price weight to be i64

* rename added price weight
…ket (#167)

* account for risk authority in set lending market owner and config

* PR fixes

* only let risk authority disable outflows
* minor refactoring of price fields in reserve

* adding extra oracle pubkey and extra market price to reserve

* using extra market price everywhere

* https://www.youtube.com/watch?v=uLHqpjW3aDs

* validate extra_oracle_pubkey in init reserve / update reserve

* writing tests

* more tests

* more refresh reserve checks

* adding some unit tests for extra_oracle stuff

* test init reserve

* clippy

* pr fixes

* don't care about staleness or variance for the extra oracle
@0xripleys 0xripleys closed this May 6, 2024
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.

None yet

2 participants