Execute
This function is payable so the Timelock contract can invoke payable functions that were selected in the proposal.
A proposal can add reserves to a market like fBNB, set a fToken's interest rate model, or set risk parameters on the Unitroller.
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
gov.execute(proposalId).value(999).gas(999)();
const tx = gov.methods.execute(proposalId).send({ from: sender, value: 1 });
Last modified 2yr ago