relevant tag icon
UMA Governance Proposer
copy icon
UMA
• version 1.0.0
Governance
Proposer
Finance
Audited

UMA Governance Proposer

Audited

Proposer contract that allows anyone to make governance proposals with a bond.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

UMA

Last Publish

11/5/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
propose() :
This function is used to propose a transaction to the Governor contract. It takes an array of Governor.Transaction objects as an argument and returns a unique ID for the proposal. It first stores the sender's address and the amount of bond they have provided in the bondedProposals mapping. It then calls the Governor contract's propose() function, passing in the transactions array as an argument. Finally, it transfers the bond from the sender to the Governor contract. (autogenerated documentation)
resolveProposal(uint256) :
This function resolves a proposal with a given ID. It first retrieves the BondedProposal storage from the bondedProposals mapping, and then uses the Voting contract to check if a price has been resolved for the proposal. If a price has been resolved, the locked bond is transferred to the sender of the proposal. If no price has been resolved, the locked bond is transferred to the Store contract. Finally, the proposal is deleted from the bondedProposals mapping. (autogenerated documentation)
setBond(uint256) :
This function sets the bond value of the contract. It can only be called by the owner of the contract and is non-reentrant, meaning it cannot be called again until the first call has finished. The function takes a uint256 value as an argument and sets the bond value of the contract to this value. It then emits an event called BondSet, which contains the new bond value. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i uma-proposer
copy icon

Last Publish

11/5/2022

Version

1.0.0

Creator

UMA

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.