mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Add MaxTipAmount for pallet-tips (#1709)
Last week we experienced a governance attack. Surprisingly, there was no upper limit on the tip amount. Due to the mechanism of pallet-fragment-election, the council members will be refreshed immediately. Attacker is easy to control the council and give a large tip amount.
This commit is contained in:
@@ -1289,6 +1289,7 @@ impl pallet_tips::Config for Runtime {
|
||||
type TipCountdown = TipCountdown;
|
||||
type TipFindersFee = TipFindersFee;
|
||||
type TipReportDepositBase = TipReportDepositBase;
|
||||
type MaxTipAmount = ConstU128<{ 500 * DOLLARS }>;
|
||||
type WeightInfo = pallet_tips::weights::SubstrateWeight<Runtime>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user