diff --git a/Cargo.lock b/Cargo.lock index 8ace9b96da..55be25b23b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16570,11 +16570,6 @@ dependencies = [ "pkg-config", ] -[[patch.unused]] -name = "substrate-test-client" -version = "2.0.1" -source = "git+https://github.com/paritytech//substrate?branch=polkadot-v0.9.43#5e49f6e44820affccaf517fd22af564f4b495d40" - [[patch.unused]] name = "sc-service-test" version = "2.0.0" @@ -16594,3 +16589,8 @@ source = "git+https://github.com/paritytech//substrate?branch=polkadot-v0.9.43#5 name = "substrate-test-runtime-client" version = "2.0.0" source = "git+https://github.com/paritytech//substrate?branch=polkadot-v0.9.43#5e49f6e44820affccaf517fd22af564f4b495d40" + +[[patch.unused]] +name = "substrate-test-client" +version = "2.0.1" +source = "git+https://github.com/paritytech//substrate?branch=polkadot-v0.9.43#5e49f6e44820affccaf517fd22af564f4b495d40" diff --git a/pallets/loans/src/lib.rs b/pallets/loans/src/lib.rs index 8339d005c0..0bbcba1b5a 100644 --- a/pallets/loans/src/lib.rs +++ b/pallets/loans/src/lib.rs @@ -343,7 +343,8 @@ pub mod pallet { pool_id: T::PoolId, from_loan_id: T::LoanId, to_loan_id: T::LoanId, - amount: T::Balance, + repaid_amount: RepaidInput, + borrow_amount: PrincipalInput, }, } @@ -826,13 +827,13 @@ pub mod pallet { Err(Error::::UnrelatedChangeId)? }; - let (amount, _count) = Self::transfer_debt_action( + let (_, _count) = Self::transfer_debt_action( &who, pool_id, from_loan_id, to_loan_id, - repaid_amount, - borrow_amount, + repaid_amount.clone(), + borrow_amount.clone(), true, )?; @@ -840,7 +841,8 @@ pub mod pallet { pool_id, from_loan_id, to_loan_id, - amount, + repaid_amount, + borrow_amount, }); Ok(())