Skip to main content

IGaugeController

IGaugeController

CommitOwnership

event CommitOwnership(address admin)

ApplyOwnership

event ApplyOwnership(address admin)

AddType

event AddType(string name, int128 typeId)

NewTypeWeight

event NewTypeWeight(int128 typeId, uint256 time, uint256 weight, uint256 totalWeight)

NewGaugeWeight

event NewGaugeWeight(address gaugeAddress, uint256 time, uint256 weight, uint256 totalWeight)

VoteForGauge

event VoteForGauge(uint256 time, address user, address gaugeAddress, uint256 weight)

NewGauge

event NewGauge(address addr, int128 gaugeType, uint256 weight)

SetVotingEscrow

event SetVotingEscrow(contract IVotingEscrow oldVotingEscrow, contract IVotingEscrow newVotingEscrow)

SetP12Factory

event SetP12Factory(address oldP12Factory, address newP12Factory)

InvalidGaugeType

error InvalidGaugeType()

DuplicatedGaugeType

error DuplicatedGaugeType()

AddGaugeFail

error AddGaugeFail()

InvalidWeight

error InvalidWeight()

UnLockTooSoon

error UnLockTooSoon()

VoteTooOften

error VoteTooOften()

getGaugeTypes

function getGaugeTypes(address addr) external returns (int128)

checkpoint

function checkpoint() external

gaugeRelativeWeightWrite

function gaugeRelativeWeightWrite(address addr, uint256 time) external returns (uint256)

changeTypeWeight

function changeTypeWeight(int128 typeId, uint256 weight) external

changeGaugeWeight

function changeGaugeWeight(address addr, uint256 weight) external

voteForGaugeWeights

function voteForGaugeWeights(address gaugeAddr, uint256 userWeight) external

checkpointGauge

function checkpointGauge(address addr) external

gaugeRelativeWeight

function gaugeRelativeWeight(address lpToken, uint256 time) external returns (uint256)

getGaugeWeight

function getGaugeWeight(address addr) external returns (uint256)

getTypeWeight

function getTypeWeight(int128 typeId) external returns (uint256)

getTotalWeight

function getTotalWeight() external returns (uint256)

getWeightsSumPerType

function getWeightsSumPerType(int128 typeId) external returns (uint256)

addGauge

function addGauge(address addr, int128 gaugeType, uint256 weight) external

addType

function addType(string name, uint256 weight) external

setVotingEscrow

function setVotingEscrow(contract IVotingEscrow newVotingEscrow) external

setP12CoinFactory

function setP12CoinFactory(address newP12Factory) external