ERC4626 vault built inDocumentation Index
Fetch the complete documentation index at: https://tech.ramses.xyz/llms.txt
Use this file to discover all available pages before exploring further.
R33.sol. The source contract is named R33, but the ERC20 share token it mints is "xRAM Liquid Staking Token" with symbol hyperRAM.
The vault wraps xRAM exposure, stakes the underlying into VoteModule, and lets an operator vote and compound on behalf of all depositors.
Core ERC4626 Functions
deposit
VoteModule, and mints vault shares to receiver.
withdraw
VoteModule, and transfers xRAM to receiver.
redeem
totalAssets
VoteModule.
ratio
1e18.
Operator and Governance Functions
submitVotes
Voter on behalf of the vault.
claimIncentives
swapIncentiveViaAggregator
compound().
compound
VoteModule, and increases the vault ratio for all share holders.
unlock
VoteModule cooldown is not active.
Key Concepts
- Deposits are gated by
isUnlocked(), which requires the current period to be unlocked and not within one hour of the next weekly period. - Withdrawals and redeems do not use the same vault lock, but they still depend on
VoteModule.withdraw()succeeding, so the VoteModule cooldown matters. totalAssets()reads fromVoteModule.balanceOf(address(this)), not from idle xRAM held directly in the vault.- Aggregators must be whitelisted by
AccessHubbeforeswapIncentiveViaAggregator()can be used. - Shares are transferable even though the underlying xRAM token is transfer-restricted.
