Skip to content

Commit

Permalink
feat(245): manual and automatic release of PLMC and funding assets im…
Browse files Browse the repository at this point in the history
…plemented and tested
  • Loading branch information
JuaniRios committed Aug 18, 2023
1 parent fd57a01 commit fe9fe9a
Show file tree
Hide file tree
Showing 2 changed files with 684 additions and 9 deletions.
11 changes: 11 additions & 0 deletions pallets/funding/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,17 @@ pub mod pallet {
Self::do_evaluation_unbond_for(releaser, project_id, evaluator, bond_id)
}

#[pallet::weight(Weight::from_parts(0, 0))]
pub fn evaluation_slash_for(
origin: OriginFor<T>,
project_id: T::ProjectIdentifier,
evaluator: AccountIdOf<T>,
bond_id: T::StorageItemId,
) -> DispatchResult {
let caller = ensure_signed(origin)?;
Self::do_evaluation_slash_for(caller, project_id, evaluator, bond_id)
}

#[pallet::weight(Weight::from_parts(0, 0))]
pub fn evaluation_reward_payout_for(
origin: OriginFor<T>,
Expand Down
Loading

0 comments on commit fe9fe9a

Please sign in to comment.