Questions tagged [pallet-treasury]
The pallet-treasury tag has no usage guidance.
29
questions
1
vote
1
answer
18
views
Sudo account reward remainder
impl pallet_staking::Config for Runtime {
type RewardRemainder = Treasury;
}
How can I give it to sudo account
1
vote
1
answer
36
views
problem with pallets bounties & treasury
hello I am trying to add the bounties pallet to the substrate node-template. the version I am using is "release-polkadot-v1.7.0". I keep getting
the following error:
the traitframe\_support::...
0
votes
1
answer
26
views
How to read treasury pallet funds?
I am able to add funds in treasury pallet, now I want to get the total balance of treasury pool. How can this be done? Can someone provide some suggestions?
1
vote
1
answer
42
views
Treasury pallet how to make payouts in native asset?
On release 1.3.0 the type AssetKind and Paymaster where added to the treasury pallet which I guess provides the ability to pay treasury proposals in different kinds of assets through the assets pallet....
1
vote
1
answer
62
views
How to burn the tokens treasury gets from staking inefficiency?
the main point is in the question itself.
Let's assume the inflation rate varies between 1% and 10%. However, in the end, the inflation will always be 10%. In this link, you can find reasons for why ...
-2
votes
1
answer
47
views
How to prefund treasury pallet?
I want to prefund treasury pallet in chain_spec GenesisConfig. Is this possible? Someone please give some advice. Github
1
vote
2
answers
84
views
How to add funds to Treasury?
Someone please point me how to add funds in Treasury?
0
votes
1
answer
16
views
proposal not funded in pallet_treasury
I am using pallet_treasury. I have created proposal and verified it. I have set SpendPeriod in min. Even after 1 min proposal doesn't get funded. What I am missing here? Why it's not working? Someone ...
1
vote
1
answer
47
views
What can a parachain sovereignAccount be used for and why does it differ the Treasury Account?
The question comes in three parts:
Each parachain has its own sovereignAccount which can be calculated as described in the answer to this question, but how is that account used since it can receive ...
1
vote
2
answers
40
views
How to access the constant defined inside parameter_types! () macro
While configuring any pallet (treasury pallet in my case), we need to configure some required associative types. To set the values of these required types, we mostly define some constants within the ...
1
vote
1
answer
28
views
What is the kusama block production reward distribution mechanism?
I am writing a custom pallet for distribution of rewards to different stake holders. The idea is to distribute block production reward in the stakeholders of my system and a portion it will go to the ...
2
votes
1
answer
154
views
How to find the accounts used behind treasury pallet?
I have multiple question about treasury pallet.
How to get the account that is behind the treasury?
Can we transfer funds to treasury by transferring some token to that account?
How to find the ...
0
votes
1
answer
99
views
How to manage the treasury?
Treasury is a pot of funds to accumulate funds to be spent for some purpose later on.
One way to manage the treasury is by a majority vote from a council like on Kusama network. Are there other ways ...
1
vote
1
answer
57
views
How to configure genesis_config for pre defined functional pallets?
Substrate has provided some pre-defined functional pallets. We need to configure these pallet in our custom runtime in order to use them.
Some of these pallets like pallet_treasury, pallet_collective ...
2
votes
2
answers
153
views
How to add and configure a pre defined pallet in runtime?
I wonder if there is some tutorial or help available for adding pre-defined pallets to a runtime (like Balance, Utility, Treasury).
There is a very good resource on substrate site here. But it only ...
0
votes
1
answer
41
views
Polkadot JS Apps UI - Treasury Proposals - Threshold met but proposals not listed as approved, unable to close
We are running a test chain based on the Substrate kitchen-sink node (code here: https://github.com/SparticleConcepts/Geode-Substrate) and using the https://polkadot.js.org/apps/ UI. We can
submit a ...
0
votes
1
answer
24
views
Extending SpendFunds Type For Use w/ Multiple Pallets
We are building a pallet that uses the SpendFunds variable to withdraw funds from Treasuries on chains that implement it. However, with the current implementation of the SpendFunds callback, only 1 ...
0
votes
2
answers
117
views
Collect some transfer fees before any transaction
I want to collect some transfer fee besides base, weight, length fee before user makes a transaction.
Like if the base + weight + length fee = 0.1
And For every transaction I want to add additional 0....
0
votes
1
answer
111
views
EVM transaction gas fees not added to the treasury
I've implemented a POA EVM-Compatible chain using the Frontier node template on branch polkadot-v0.9.22.
I've Implemented a DealWithFees struct and let some part of fees be added to a treasury i've ...
0
votes
1
answer
38
views
Get remaining value of bounty after child bounty
I am writing a web app that shows current info about bounties and child bounties. From what i understand if there is a bounty with a value of 5 DOT, I can create N child bounties which values sum up ...
1
vote
2
answers
179
views
How do I hardcode asset id's?
Using pallet-assets, how do I create a pallet that has hardcoded (pallet-)asset id's for it's on-chain assets that the pallet handles?
I wasnt able to find a good documented way to do this
1
vote
1
answer
38
views
Recurring Proposal on Substrate Frontend
So from polkadot js (UI) while creating treasury proposal and want to make it recurring per cycle, you do you achieve that? Say set the segment input in the picture attached to any positive integer, ...
4
votes
1
answer
148
views
Multiple instances of Treasury pallet
I wondered how to create multiple instances of the pallet Treasury and couldn't find any examples so far.
One example is pallet Membership, which doesn't have any dependencies, while the Treasury ...
3
votes
2
answers
179
views
What is a best way to fork a substrate pallet?
Context:
i'm building a "sub-treasury" pallet, and for it, i'd like to start from the existing substrate's pallet_treasury.
Problem:
In Cargo.toml, there is relative paths (like sp-io = {...
3
votes
1
answer
34
views
Proposal bond in pallet-treasury
/// Fraction of a proposal's value that should be bonded in order to place the proposal.
/// An accepted proposal gets these back. A rejected proposal does not.
#[pallet::constant]
type ProposalBond: ...
2
votes
0
answers
69
views
How to provide Council the Ability to Mint/Burn tokens based on Council Proposals?
I am working with the staking pallet and configuring parameters. The RewardRemainder is receiving the issued amount based on the imbalance from difference to the optimal staking percentage.
How can I ...
2
votes
1
answer
76
views
How to create an escrow account without runtime upgrade
I'd like to create an account that is only usable through the root origin like the treasury account. It should be possible to transfer funds to it, but sending from it should only be possible through ...
5
votes
1
answer
56
views
What governs Treasury funds out?
My question is: What governs access to treasury funds? I’m assuming it requires an ink contract that governs who is able to invoke funds transfers out of the treasury and which conditions apply.
Is ...
4
votes
2
answers
110
views
Using unspent funds from Treasury as staking rewards
I am trying to build something that will allow me to use unspent treasury funds as I don't understand the proposal system yet, but I won't be overloading this question with that. Here's the scenario:
...