Skip to content

Commit

Permalink
remove migration comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Mar 31, 2023
1 parent 4a6f47b commit f077df9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pallets/loans-ref/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub struct WriteOffState<Rate> {
pub percentage: Rate,

/// Additional interest that accrues on the written off loan as penalty
pub penalty: Rate, //TODO: migration: per sec -> per year
pub penalty: Rate,
}

impl<Rate> WriteOffState<Rate>
Expand Down Expand Up @@ -191,7 +191,7 @@ pub struct WriteOffStatus<Rate> {
pub percentage: Rate,

/// Additional interest that accrues on the written down loan as penalty per sec
pub penalty: Rate, //TODO: migration: per sec -> per year
pub penalty: Rate,
}

impl<Rate> WriteOffStatus<Rate>
Expand Down Expand Up @@ -408,7 +408,7 @@ pub struct ClosedLoan<T: Config> {
closed_at: T::BlockNumber,

/// Loan information
info: LoanInfo<AssetOf<T>, T::Balance, T::Rate>, //TODO: migration: interest rate: "per sec" -> "per year"
info: LoanInfo<AssetOf<T>, T::Balance, T::Rate>,

/// Total borrowed amount of this loan
total_borrowed: T::Balance,
Expand All @@ -431,7 +431,7 @@ pub struct ActiveLoan<T: Config> {
loan_id: T::LoanId,

/// Loan information
info: LoanInfoOf<T>, //TODO: migration: interest rate: "per sec" -> "per year"
info: LoanInfoOf<T>,

/// Borrower account that created this loan
borrower: T::AccountId,
Expand Down
2 changes: 1 addition & 1 deletion pallets/loans-ref/src/valuation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct DiscountedCashFlow<Rate> {
pub loss_given_default: Rate,

/// Rate per year of return used to discount future cash flows back to their present value.
pub discount_rate: Rate, //TODO: migration: per sec -> per year
pub discount_rate: Rate,
}

impl<Rate: FixedPointNumber> DiscountedCashFlow<Rate> {
Expand Down

0 comments on commit f077df9

Please sign in to comment.