Skip to content

Commit

Permalink
Fix: Loans adjustments (#1616)
Browse files Browse the repository at this point in the history
* increase Feed values

* add transfer_debt to proxy

---------

Co-authored-by: Frederik Gartenmeister <[email protected]>
  • Loading branch information
lemunozm and mustermeiszer authored Nov 23, 2023
1 parent 5730d02 commit 0b104c0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Loans(pallet_loans::Call::propose_write_off_policy{..}) |
RuntimeCall::Loans(pallet_loans::Call::apply_write_off_policy{..}) |
RuntimeCall::Loans(pallet_loans::Call::update_portfolio_valuation{..}) |
RuntimeCall::Loans(pallet_loans::Call::propose_transfer_debt { .. }) |
RuntimeCall::Loans(pallet_loans::Call::apply_transfer_debt { .. }) |
RuntimeCall::Permissions(..) |
RuntimeCall::CollatorAllowlist(..) |
// Specifically omitting Tokens
Expand Down Expand Up @@ -534,6 +536,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Loans(pallet_loans::Call::close { .. }) |
RuntimeCall::Loans(pallet_loans::Call::apply_write_off_policy { .. }) |
RuntimeCall::Loans(pallet_loans::Call::update_portfolio_valuation { .. }) |
RuntimeCall::Loans(pallet_loans::Call::propose_transfer_debt { .. }) |
RuntimeCall::Loans(pallet_loans::Call::apply_transfer_debt { .. }) |
// Borrowers should be able to close and execute an epoch
// in order to get liquidity from repayments in previous epochs.
RuntimeCall::PoolSystem(pallet_pool_system::Call::close_epoch{..}) |
Expand Down Expand Up @@ -1334,7 +1338,7 @@ impl pallet_membership::Config for Runtime {
}

parameter_types! {
pub const MaxFeedValues: u32 = 10;
pub const MaxFeedValues: u32 = 500;
}

impl orml_oracle::Config for Runtime {
Expand Down
6 changes: 5 additions & 1 deletion runtime/centrifuge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Loans(pallet_loans::Call::propose_write_off_policy{..}) |
RuntimeCall::Loans(pallet_loans::Call::apply_write_off_policy{..}) |
RuntimeCall::Loans(pallet_loans::Call::update_portfolio_valuation{..}) |
RuntimeCall::Loans(pallet_loans::Call::propose_transfer_debt { .. }) |
RuntimeCall::Loans(pallet_loans::Call::apply_transfer_debt { .. }) |
RuntimeCall::Permissions(..) |
RuntimeCall::CollatorAllowlist(..) |
// Specifically omitting Tokens
Expand Down Expand Up @@ -675,6 +677,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Loans(pallet_loans::Call::close { .. }) |
RuntimeCall::Loans(pallet_loans::Call::apply_write_off_policy { .. }) |
RuntimeCall::Loans(pallet_loans::Call::update_portfolio_valuation { .. }) |
RuntimeCall::Loans(pallet_loans::Call::propose_transfer_debt { .. }) |
RuntimeCall::Loans(pallet_loans::Call::apply_transfer_debt { .. }) |
// Borrowers should be able to close and execute an epoch
// in order to get liquidity from repayments in previous epochs.
RuntimeCall::PoolSystem(pallet_pool_system::Call::close_epoch{..}) |
Expand Down Expand Up @@ -1684,7 +1688,7 @@ impl pallet_membership::Config for Runtime {
}

parameter_types! {
pub const MaxFeedValues: u32 = 10;
pub const MaxFeedValues: u32 = 500;
}

impl orml_oracle::Config for Runtime {
Expand Down
6 changes: 5 additions & 1 deletion runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Loans(pallet_loans::Call::propose_write_off_policy{..}) |
RuntimeCall::Loans(pallet_loans::Call::apply_write_off_policy{..}) |
RuntimeCall::Loans(pallet_loans::Call::update_portfolio_valuation{..}) |
RuntimeCall::Loans(pallet_loans::Call::propose_transfer_debt { .. }) |
RuntimeCall::Loans(pallet_loans::Call::apply_transfer_debt { .. }) |
RuntimeCall::Permissions(..) |
RuntimeCall::CollatorAllowlist(..) |
// Specifically omitting Tokens
Expand Down Expand Up @@ -548,6 +550,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Loans(pallet_loans::Call::close { .. }) |
RuntimeCall::Loans(pallet_loans::Call::apply_write_off_policy { .. }) |
RuntimeCall::Loans(pallet_loans::Call::update_portfolio_valuation { .. }) |
RuntimeCall::Loans(pallet_loans::Call::propose_transfer_debt { .. }) |
RuntimeCall::Loans(pallet_loans::Call::apply_transfer_debt { .. }) |
// Borrowers should be able to close and execute an epoch
// in order to get liquidity from repayments in previous epochs.
RuntimeCall::PoolSystem(pallet_pool_system::Call::close_epoch { .. }) |
Expand Down Expand Up @@ -1317,7 +1321,7 @@ impl pallet_membership::Config for Runtime {
}

parameter_types! {
pub const MaxFeedValues: u32 = 10;
pub const MaxFeedValues: u32 = 500;
}

impl orml_oracle::Config for Runtime {
Expand Down

0 comments on commit 0b104c0

Please sign in to comment.