Skip to content

Commit

Permalink
investments: Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian committed Nov 7, 2023
1 parent 68698bc commit 9612869
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions pallets/investments/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,14 +591,6 @@ impl<T: Config> Pallet<T> {
Error::<T>::CollectRequired
);

Self::do_update_redeem_order(
total_order,
&who,
investment_id,
order,
amount,
)?;

order.update_submitted_at(cur_order_id);

Self::do_update_redeem_order(
Expand All @@ -613,18 +605,6 @@ impl<T: Config> Pallet<T> {
if amount.is_zero() {
*maybe_order = None;
}
// else {
// // nuno: check that this is ok. Amount == 0 removes the order, so
// // there's no point in processing a transfer of 0 which fails because it
// // would kill the account (< ED)
// Self::do_update_redeem_order(
// total_order,
// &who,
// investment_id,
// order,
// amount,
// )?;
// }

Ok(cur_order_id)
},
Expand Down

0 comments on commit 9612869

Please sign in to comment.