OlympusGovDelegation.sol
Core State
struct AccountState {
EnumerableSet.AddressSet delegateAddresses; // Set of current delegates
uint112 totalGOhm; // Total gOHM across all policies
uint112 delegatedGOhm; // Amount currently delegated
uint32 maxDelegateAddresses; // Max delegates allowed (default 10)
}
// Track gOHM deposited per policy per account
mapping(address policy => mapping(address account => uint256 amount)) _policyAccountBalances;
// Track each account's delegate info
mapping(address account => AccountState) _accountState;Functions
Deposits and Withdrawals
Delegation Management
Internal Functions
Last updated