You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pallet will manage the voting process for the house selling proposal. It should pass through the vote of the house council and the investors.
Solution
The house council process will be implemented with the collective pallet. The investors process will be implemented with the democracy pallet. The voting pallet will manage the data between these pallets.
Steps
Create and configure vote pallet
Add collective and democracy pallet to the vote pallet and the runtime
Add structs and storages
Add callable functions and helpers (see Implementation section below)
Add tests and benchmarking
Implementation
call::submit_proposal
A Seller role submit a proposal to the pallet. As input parameters, the accountId of a SELLER (role), and a proposal index which should be linked to a struct containing information about the [asset/asset_nft] are used
The proposal index is transmitted to the treasury-pallet, in order to trigger a spending_proposal, and lock a deposit fee proportional to the value of the proposal.
A call to collective::propose is done by the pallet. An accountId linked to the Vote pallet is added in the collective council to be able to submit proposal to the collective pallet
call::council_vote
Only a house council member can call this function.
In case of unfavorable vote result, the negative vote answer is transmitted to the treasury's spending_proposal, which in turn will trigger the transfer of the deposit fee to the treasury.
In case of favorable vote, a Referendum (Democracy_pallet) linked to this proposal is immediately triggered, waiting for Investor's vote
call::investor_vote
This vote is managed by the democracy-pallet
Only an investor can call this function
In case of unfavorable vote result, the negative vote answer is transmitted to the treasury's spending_proposal, which in turn will trigger the transfer of the deposit fee to the treasury.
In case of favorable outcome, the vote answer is still transmitted to the treasury's spending_proposal, which will trigger the return of the Deposit to the Seller.
The text was updated successfully, but these errors were encountered:
Motivation
This pallet will manage the voting process for the house selling proposal. It should pass through the vote of the house council and the investors.
Solution
The house council process will be implemented with the collective pallet. The investors process will be implemented with the democracy pallet. The voting pallet will manage the data between these pallets.
Steps
Implementation
call::submit_proposal
call::council_vote
call::investor_vote
The text was updated successfully, but these errors were encountered: