Staking, delegation, and permissions module for xRAM.Documentation Index
Fetch the complete documentation index at: https://tech.ramses.xyz/llms.txt
Use this file to discover all available pages before exploring further.
VoteModule is the contract that actually supplies governance voting power. Voter reads VoteModule.balanceOf(user), not a wallet balance or NFT position.
Core Functions
deposit / depositAll
VoteModule and increases the caller’s voting power.
withdraw / withdrawAll
delegate
Voter.vote(), Voter.reset(), and Voter.poke(). Passing address(0) clears the delegate.
setAdmin
isDelegateFor / isAdminFor
Voter and FeeDistributor.
unlockTime / cooldown
block.timestamp >= unlockTime.
Key Concepts
- Voting power equals the caller’s staked xRAM balance in
VoteModule. notifyRewardAmount(0)can only be called by xRAM and is used to pushunlockTimeforward after weekly maintenance.- Delegates are intended for voting actions; admins are used for a wider set of owner-authorized operations such as fee claims.
AccessHubcan change cooldown settings and add cooldown exemptions for specific addresses.
