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

Allow risk authority to change rate limiter config in the lending market #167

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

0xripleys
Copy link

@0xripleys 0xripleys commented Sep 18, 2023

title. only let it disable outflow though

@codecov-commenter
Copy link

codecov-commenter commented Sep 18, 2023

Codecov Report

Merging #167 (5e73830) into upcoming (8674673) will increase coverage by 0.04%.
The diff coverage is 98.64%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff              @@
##           upcoming     #167      +/-   ##
============================================
+ Coverage     83.62%   83.66%   +0.04%     
============================================
  Files            50       50              
  Lines         18704    18764      +60     
============================================
+ Hits          15641    15699      +58     
- Misses         3063     3065       +2     
Files Changed Coverage Δ
token-lending/program/src/processor.rs 81.24% <94.11%> (-0.06%) ⬇️
...-lending/program/tests/set_lending_market_owner.rs 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

}

lending_market.whitelisted_liquidator = whitelisted_liquidator;
if !signer_info.is_signer {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slight preference for this to be near the top of constraints rather than bottom, and rename variable to like market_change_authority (just to not mix up to concept of it being a signer)

@0xripleys 0xripleys force-pushed the risk_authority_lending_market branch from d81f85d to d900356 Compare December 13, 2023 22:48
@0xripleys 0xripleys changed the base branch from upcoming to v2.0.3_upcoming December 13, 2023 22:48
@0xripleys 0xripleys merged commit e53ede1 into v2.0.3_upcoming Dec 13, 2023
6 checks passed
nope-finance pushed a commit that referenced this pull request Jan 22, 2024
* oracle price multiplier (#174)

* oracle price multiplier

* changing added price weight to be i64

* rename added price weight

* Allow risk authority to change rate limiter config in the lending market (#167)

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

* PR fixes

* only let risk authority disable outflows

* Optional, extra oracle on reserve (#176)

* 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

* Collateralization Limits Final (#177)

* forgot to update smoothed price with price scale in switchboard case

* remove redundant multiply

* remove clock (#179)
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