LogoLogo
Block ExplorerDiscordTwitterMirror
  • What Is Canto?
  • Free Public Infrastructure
    • NOTE
    • Canto Lending Market
    • Canto DEX
  • Canto Neofinance
    • Overview
    • Application Specific Dollar
  • User Guides
    • Connecting to Canto
    • Bridging Assets
      • Bridging to Canto
      • Bridging from Canto
      • Synapse Bridge
      • Celer cBridge
    • Providing Liquidity
    • Lending & Borrowing
    • Staking
    • Governance
  • EVM Development
    • Overview
    • Quickstart Guide
    • NOTE, DEX, and Lending Market
    • Contract Secured Revenue (CSR)
    • Verifying Contracts
    • Contract Addresses
    • Testnet
  • Running a Node
    • Validators
      • Quickstart Guide
      • Useful Commands
      • Snapshots
      • FAQ
      • Troubleshooting
      • Uptime
      • Slashing
    • Archive Node
    • Graph Node (Subgraphs)
  • Technical Reference
    • Application Specific Dollar
      • asdOFT
      • asdRouter
      • asdUSDC
    • Liquidity Coordinator
      • VotingEscrow
      • GaugeController
      • LendingLedger
      • LiquidityGauge
    • Architecture & Design
      • Onboarding Module
      • Gravity Bridge
      • NOTE Design
      • Canto Lending Protocol
      • IBC Token Recovery
    • Governance
      • Governance Module
      • GovShuttle Module
      • Lending Market Governance
    • Tokenomics
    • Audits
Powered by GitBook
On this page
  • Voting
  • Removing/Changing Votes
  1. Technical Reference
  2. Liquidity Coordinator

GaugeController

PreviousVotingEscrowNextLendingLedger

Last updated 1 year ago

Lockers vote on gauges using the 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).

GaugeController