getResolvedPrice(struct ResultComputation.Data data, struct FixedPoint.Unsigned minVoteThreshold) → bool isResolved, int256 price internal
Returns whether the result is resolved, and if so, what value it resolved to.
price should be ignored if
isResolved is false.
minVoteThreshold: Minimum number of tokens that must have been voted for the result to be valid. Can be used to enforce a minimum voter participation rate, regardless of how the votes are distributed.
addVote(struct ResultComputation.Data data, int256 votePrice, struct FixedPoint.Unsigned numberTokens) internal
Adds a new vote to be used when computing the result.
Checks whether a
voteHash is considered correct. Should only be called after a vote is resolved, i.e.,