mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
add claim_commission weight (#13774)
This commit is contained in:
@@ -2617,7 +2617,7 @@ pub mod pallet {
|
|||||||
/// commission is paid out and added to total claimed commission`. Total pending commission
|
/// commission is paid out and added to total claimed commission`. Total pending commission
|
||||||
/// is reset to zero. the current.
|
/// is reset to zero. the current.
|
||||||
#[pallet::call_index(20)]
|
#[pallet::call_index(20)]
|
||||||
#[pallet::weight(0)]
|
#[pallet::weight(T::WeightInfo::claim_commission())]
|
||||||
pub fn claim_commission(origin: OriginFor<T>, pool_id: PoolId) -> DispatchResult {
|
pub fn claim_commission(origin: OriginFor<T>, pool_id: PoolId) -> DispatchResult {
|
||||||
let who = ensure_signed(origin)?;
|
let who = ensure_signed(origin)?;
|
||||||
Self::do_claim_commission(who, pool_id)
|
Self::do_claim_commission(who, pool_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user