GaugeController
Lockers vote on gauges using the GaugeController
contract. Gauges represent LP tokens on the Canto DEX and/or cNOTE deposits on third-party lending markets.
Voting takes place during one week epochs.
Voting
To vote for a gauge, call the vote_for_gauge_weights(address _gauge_addr, uint256 _user_weight)
method. The _gauge_addr
parameter is the address of a whitelisted gauge and _user_weight
is the voting weight in bps (basis points).
ethers.js
foundry
Removing/Changing Votes
To remove or change votes cast in the current epoch, call the vote_for_gauge_weights(address _gauge_addr, uint256 _user_weight)
method specifying a new weight (e.g. 0 bps).
Last updated