Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
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 GovernorV2 contract. It takes an array of transactions and ancillary data as parameters. It first stores the sender's address and the amount of bond they have provided in the bondedProposals mapping. It then calls the propose function of the GovernorV2 contract, passing in the transactions and ancillary data as parameters. Finally, it returns the ID of the proposal. (autogenerated documentation)
resolveProposal(uint256) :
This function resolves a bonded proposal with a given ID. It first retrieves the bonded proposal from the bondedProposals mapping, then uses the OracleAncillaryInterface 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 address. Finally, the bonded proposal is deleted from the 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)
getCurrentTime() :
This function is a public view function that returns the current block timestamp in the form of a uint256. It works by accessing the block timestamp from the blockchain and returning it as an output. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i uma-proposer-v2
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.