From 7070f0f9a33bbcece5afa9b544be2629a39098c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Enrique=20Mu=C3=B1oz=20Mart=C3=ADn?= Date: Thu, 1 Aug 2024 20:47:24 +0200 Subject: [PATCH] Add increase & decrease debt to borrow proxy (#1944) * add increase/decrease debt for borrow proxy * add to NonTransfer --- runtime/altair/src/lib.rs | 4 ++++ runtime/centrifuge/src/lib.rs | 4 ++++ runtime/development/src/lib.rs | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/runtime/altair/src/lib.rs b/runtime/altair/src/lib.rs index c4b8b1de79..5ddd838d69 100644 --- a/runtime/altair/src/lib.rs +++ b/runtime/altair/src/lib.rs @@ -581,6 +581,8 @@ impl InstanceFilter for ProxyType { 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::Loans(pallet_loans::Call::increase_debt { .. }) | + RuntimeCall::Loans(pallet_loans::Call::decrease_debt { .. }) | RuntimeCall::Permissions(..) | RuntimeCall::CollatorAllowlist(..) | // Specifically omitting Tokens @@ -629,6 +631,8 @@ impl InstanceFilter for ProxyType { 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::Loans(pallet_loans::Call::increase_debt { .. }) | + RuntimeCall::Loans(pallet_loans::Call::decrease_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{..}) | diff --git a/runtime/centrifuge/src/lib.rs b/runtime/centrifuge/src/lib.rs index 829bd90403..9576cef926 100644 --- a/runtime/centrifuge/src/lib.rs +++ b/runtime/centrifuge/src/lib.rs @@ -679,6 +679,8 @@ impl InstanceFilter for ProxyType { 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::Loans(pallet_loans::Call::increase_debt { .. }) | + RuntimeCall::Loans(pallet_loans::Call::decrease_debt { .. }) | RuntimeCall::Permissions(..) | RuntimeCall::CollatorAllowlist(..) | // Specifically omitting Tokens @@ -722,6 +724,8 @@ impl InstanceFilter for ProxyType { 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::Loans(pallet_loans::Call::increase_debt { .. }) | + RuntimeCall::Loans(pallet_loans::Call::decrease_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{..}) | diff --git a/runtime/development/src/lib.rs b/runtime/development/src/lib.rs index 32f4991934..128dd93d1f 100644 --- a/runtime/development/src/lib.rs +++ b/runtime/development/src/lib.rs @@ -584,6 +584,8 @@ impl InstanceFilter for ProxyType { 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::Loans(pallet_loans::Call::increase_debt { .. }) | + RuntimeCall::Loans(pallet_loans::Call::decrease_debt { .. }) | RuntimeCall::Permissions(..) | RuntimeCall::CollatorAllowlist(..) | // Specifically omitting Tokens @@ -634,6 +636,8 @@ impl InstanceFilter for ProxyType { 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::Loans(pallet_loans::Call::increase_debt { .. }) | + RuntimeCall::Loans(pallet_loans::Call::decrease_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 { .. }) |