Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.04 KB

gaugecontroller.md

File metadata and controls

25 lines (15 loc) · 1.04 KB

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

await GaugeController.vote_for_gauge_weights(0x..., 10000) // 10,000 bps = 100%

foundry

cast send --ledger 0x... "vote_for_gauge_weights(address,uint256)" 0x... 10000

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).