Skip to content

Commit

Permalink
Add increase & decrease debt to borrow proxy (#1944)
Browse files Browse the repository at this point in the history
* add increase/decrease debt for borrow proxy

* add to NonTransfer
  • Loading branch information
lemunozm authored Aug 1, 2024
1 parent b682138 commit 7070f0f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ impl InstanceFilter<RuntimeCall> 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
Expand Down Expand Up @@ -629,6 +631,8 @@ impl InstanceFilter<RuntimeCall> 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{..}) |
Expand Down
4 changes: 4 additions & 0 deletions runtime/centrifuge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,8 @@ impl InstanceFilter<RuntimeCall> 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
Expand Down Expand Up @@ -722,6 +724,8 @@ impl InstanceFilter<RuntimeCall> 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{..}) |
Expand Down
4 changes: 4 additions & 0 deletions runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ impl InstanceFilter<RuntimeCall> 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
Expand Down Expand Up @@ -634,6 +636,8 @@ impl InstanceFilter<RuntimeCall> 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 { .. }) |
Expand Down

0 comments on commit 7070f0f

Please sign in to comment.