LootVoteController
Contract handling the vote logic for repartition of the global Loot budget between all the listed gauges for the Quest system. User voting power is based on their hPAL locks, transformed into a bias via the HolyPalPower contract. Votes are sticky, meaning users do not need to cast them every period, but can set their vote and update it periods later. Before an user can change its votes, a vote cooldown need to be respected.
QuestBoard
Quest Board & distributor struct
Point
Point struct
VotedSlope
Voted Slope struct
VoteVars
Struct used for the vote method
ProxyVoter
Proxy Voter struct
hPalPower
Address of the hPalPower contract
nextBoardId
Next ID to list Boards
questBoards
Listed Quest Boards
boardToId
Match Board address to ID
distributorToId
Match Distributor address to ID
gaugeToBoardId
Match a Gauge to a Board ID
defaultCap
Default weight cap for gauges
gaugeCaps
Custom caps for gauges
isGaugeKilled
Flag for killed gauges
voteUserSlopes
User VotedSlopes for each gauge
voteUserPower
Total vote power used by user
lastUserVote
Last user vote's timestamp for each gauge address
pointsWeight
Point weight for each gauge
changesWeight
Slope changes for each gauge
timeWeight
Last scheduled time for gauge weight update
pointsWeightTotal
Total Point weights
changesWeightTotal
Total weight slope changes
timeTotal
Last scheduled time for weight update
isProxyManager
Proxy Managers set for each user
maxProxyDuration
Max Proxy duration allowed for Manager
proxyVoterState
State of Proxy Managers for each user
currentUserProxyVoters
List of current proxy for each user
blockedProxyPower
Blocked (for Proxies) voting power for each user
usedFreePower
Used free voting power for each user
VoteForGauge
Event emitted when a vote is casted for a gauge
NewBoardListed
Event emitted when a new Board is listed
BoardUpdated
Event emitted when a Board is udpated
NewGaugeAdded
Event emitted when a new Gauge is listed
GaugeCapUpdated
Event emitted when a Gauge is updated
GaugeBoardUpdated
Event emitted when a Gauge is updated
GaugeKilled
Event emitted when a Gauge is killed
GaugeUnkilled
Event emitted when a Gauge is unkilled
SetProxyManager
Event emitted when a Proxy Manager is set
RemoveProxyManager
Event emitted when a Proxy Manager is removed
SetNewProxyVoter
Event emitted when a Proxy Voter is set
DefaultCapUpdated
Event emitted when the default gauge cap is updated
isListedGauge
Is the gauge listed
Parameters
Return Values
getBoardForGauge
Returns the Quest Board assocatied to a gauge
Parameters
Return Values
getDistributorForGauge
Returns the Distributor assocatied to a gauge
Parameters
Return Values
getGaugeWeight
Returns the current gauge weight
Parameters
Return Values
getGaugeWeightAt
Returns the gauge weight at a specific timestamp
Parameters
Return Values
getTotalWeight
Returns the current total weight
Return Values
getGaugeRelativeWeight
Returns a gauge relative weight
Parameters
Return Values
getGaugeRelativeWeight
Returns a gauge relative weight at a specific timestamp
Parameters
Return Values
getGaugeCap
Returns the cap relative weight for a gauge
Parameters
Return Values
getUserProxyVoters
Returns the list of current proxies for a user
Parameters
Return Values
voteForGaugeWeights
Votes for a gauge weight
Votes for a gauge weight based on the given user power
Parameters
voteForManyGaugeWeights
Votes for multiple gauge weights
Parameters
voteForGaugeWeightsFor
Votes for a gauge weight as another user
Parameters
voteForManyGaugeWeightsFor
Votes for multiple gauge weights as another user
Parameters
getGaugeRelativeWeightWrite
Returns the updated gauge relative weight
Parameters
Return Values
getGaugeRelativeWeightWrite
Returns the updated gauge relative weight at a given timestamp
Parameters
Return Values
updateGaugeWeight
Updates the gauge weight
Parameters
updateTotalWeight
Updates the total weight
approveProxyManager
Approves a Proxy Manager for the caller
Parameters
updateProxyManagerDuration
Updates the max duration allowed for a Proxy Manager
Parameters
removeProxyManager
Approves a Proxy Manager for the caller
Parameters
setVoterProxy
Sets a Proxy Voter for the user
Parameters
clearUserExpiredProxies
Clears expired Proxies for a user
Parameters
Last updated