Contracts
Deployed Address
FeeTransmutation
interface IFeeTransmutation {
function receiveProtocolFee(
address token,
uint amount,
address contributor,
address claimer
) external;
function transmutation() external returns (bool swapSuccess);
function claim() external;
}DAO Contract Call
Submit Proposal
bytes4(abi.encodeWithSignature("setMinSupportRatio(uint256)"))ethers v5
ethers.getFunctionSelector("setMinSupportRatio(uint256)")
// or
const interface = new ethers.Interface(["function setMinSupportRatio(uint256)"]);
const selector = interface.getFunction("setMinSupportRatio").selector;Query Proposal Status
get period start time
function getPeriodStartTimestamp(uint period) external view returns (uint);DAO Parameter Adjustments
struct CallContractInfo {
address target;
bytes4 functionSelector;
bytes params;
}
the target refers to the DAO's own address here// Update goRice limit
// Only addresses that reach this goRice limit can participate in governance
function setGoRiveLimit(uint newLimit) external;// Update minimum support ratio
function setMinSupportRatio(uint newRatio) external;// Update minimum quorum ratio
function setMinQuorumRatio(uint newRatio) external;Treasury
// Initiate a proposal to withdraw Treasury funds
function withdraw(
address token,
uint amount,
address to
) external;//Initiate a proposal to swap treasury tokens
function swap(
address tokenIn,
address tokenOut,
uint amount
) external;// The swap contract can be updated and replaced through governance if it no longer meets requirements.
function setSwapHelperAddress(address _swapHelper) external;TheGraph
Development Query URL
The GraphiQL
api.studio.thegraph.com
Github Repo
Contract
TheGraph
← Previous
Next →
On this page
- Contracts
- Deployed Address
- FeeTransmutation
- DAO Contract Call
- Submit Proposal
- Query Proposal Status
- DAO Parameter Adjustments
- Treasury
- TheGraph
- Github Repo