Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Tip request in treasury #4477

@gavofyork

Description

@gavofyork

Additional dispatch items in treasury:

  • fn request_tip(origin /*signed*/, url: Vec<u8>); does nothing.
  • fn give_tip(origin /*council member*/, hash_of_url_concat_who: T::Hash, tip_value: BalanceOf<T>)
  • fn send_tip(origin /*council member*/, hash_of_url_concat_who: T::Hash, url: Vec<u8>, who: T::AccountId)

Once either TipPeriod time has elapsed after (members().len() + 1) / 2 unique members have done give_tip or all members have done give_tip, then a tip is paid, which is the median of the tip_values that have been recorded for the url_hash/who pair.

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.Z2-mediumCan be fixed by a coder with good Rust knowledge but little knowledge of the codebase.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions