Governance
The following table outlines potential errors that may occur during interactions with the governance contract in GnoSwap:
Governance
GNOSWAP-GOVERNANCE-001
Out of range for numeric value
Occurs when a numeric input exceeds the acceptable range for the operation.
GNOSWAP-GOVERNANCE-002
Invalid input
Occurs when input data does not meet the required format or values for a governance operation.
GNOSWAP-GOVERNANCE-003
Requested data not found
Occurs when the system is unable to locate the requested data for a governance action, such as a specific proposal.
GNOSWAP-GOVERNANCE-004
Not enough balance
Occurs when a user attempts an action without sufficient token balance to fulfill the requirement.
GNOSWAP-GOVERNANCE-005
Unable to vote for canceled proposal
Occurs when a user attempts to vote on a proposal that has been canceled.
GNOSWAP-GOVERNANCE-006
Can not vote twice
Occurs when a user tries to vote multiple times on the same proposal.
GNOSWAP-GOVERNANCE-007
Not enough voting power
Occurs when a user does not have enough voting power to cast a vote on a proposal.
GNOSWAP-GOVERNANCE-008
Can not cancel already canceled proposal
Occurs when an attempt is made to cancel a proposal that has already been canceled.
GNOSWAP-GOVERNANCE-009
Unable to cancel voting proposal
Occurs when a user tries to cancel a proposal that is in the voting phase and cannot be canceled.
GNOSWAP-GOVERNANCE-010
Unable to cancel proposal with voter has enough delegation
Occurs when a cancellation attempt is made on a proposal with sufficient delegation support.
GNOSWAP-GOVERNANCE-011
Can not execute text proposal
Occurs when an attempt is made to execute a text proposal, which is not executable.
GNOSWAP-GOVERNANCE-012
Unsupported proposal type
Occurs when a token involved in a proposal action is not registered with the community pool.
GNOSWAP-GOVERNANCE-013
Invalid proposal type
Occurs when a proposal of an unsupported type is submitted for voting.
GNOSWAP-GOVERNANCE-014
Unable to vote out of voting period.
Occurs when an user votes to proposal while voting out of voting period.
GNOSWAP-GOVERNANCE-015
Invalid message format
Occurs when an user submits a proposal with invalid execution message format.
GNOSWAP-GOVERNANCE-016
Proposal not passed
Occurs when an user executes non-passed proposal.
Governance_Staker
GNOSWAP-GOV_STAKER-001
Caller has no permission
Occurs when a user without the necessary permissions attempts an action restricted to authorized callers.
GNOSWAP-GOV_STAKER-002
Requested data not found
Occurs when the system is unable to locate the requested data for a staking or governance operation.
GNOSWAP-GOV_STAKER-003
Transfer failed
Occurs when token transfer failed
GNOSWAP-GOV_STAKER-004
Invalid Amount
Occurs when a token transfer operation is attempted with invalid amounts.
GNOSWAP-GOV_STAKER-005
Zero delegated amount
Occurs when a delegation operation is attempted with an amount of zero, which is invalid.
GNOSWAP-GOV_STAKER-006
Did not delegate to that address
Occurs when a user attempts to interact with a delegation but has not delegated to the specified address.
GNOSWAP-GOV_STAKER-007
Not enough delegated
Occurs when a user tries to undelegate more tokens than they have delegated.
GNOSWAP-GOV_STAKER-008
Invalid address
Occurs when an invalid address is provided in a staking or delegation operation.
GNOSWAP-GOV_STAKER-009
Can not use future time
Occurs when a time parameter is set to a future time that is invalid for the operation.
GNOSWAP-GOV_STAKER-010
Not enough balance
Occurs when a user attempts an action without sufficient token balance to complete the operation.
GNOSWAP-GOV_STAKER-011
Can not delegate less than minimum amount
Occurs when a user attempts to delegate an amount that is below the minimum required.
Last updated
Was this helpful?