After the Timelock delay period, any account may invoke the execute method to apply the changes from the proposal to the target contracts. This will invoke each of the actions described in the proposal.

This function is payable so the Timelock contract can invoke payable functions that were selected in the proposal. E.g., A proposal can add reserves to a market like oETH, set a oToken's interest rate model, or set risk parameters on the Comptroller.

Governor Alpha

function execute(uint proposalId) payable returns (uint)
  • proposalId: ID of a succeeded proposal to execute.

  • RETURN: No return, reverts on error.


GovernorAlpha gov = GovernorAlpha(0x123...); // contract address

Web3 1.2.6

const tx = gov.methods.execute(proposalId).send({ from: sender, value: 1 });

Last updated