Process Management
Process management contains functionality that changes the state of Solido.
#
Functions#
process_change_fee_specThis function changes the fee spec in the Solido state.
The function is gated so that only the manager role can call the function successfully. It additionally checks that the developer and treasury accounts passed to the function are stSOL accounts.
Note: This function can also be used to change the keys associated with the developer and treasury accounts in addition to changing the fee spec.
#
process_add_validatorThis function add a validator to the list of validators in the Solido state.
The add validator process is gated so that only the manager role can call the function successfully. It additionally checks that the validator fee account is an stSOL accounts.
#
process_remove_validatorThis function remove a validator from the list of validators in the Solido state.
The remove validator process is gated so that only the manager role can call the function successfully. Additionally, before a validator can be removed, all fees must be claimed. The function will fail with ValidatorHAsUnclaimedCredit
error if there are unclaimed fees.
#
process_claim_validator_feeFor a given validator fee account, this function will mint stSOL to the fee account equal to any outstanding fees due. Once minting is complete, the fee amount for the validator is reset to 0.
This function is not gated so anyone can call it successfully.
#
process_distribute_feesThis function calculates the correct Fee Distribution and mints the appropriate stSOL tokens to the treasury and developer accounts. Once minting is complete, the function sets the validator fees attributable to the validators in the Solido state ready for the process_claim_validator_fee to be called at a subsequent point in time.
This function is gated so that only the maintainer role can call it successfully.
#
process_add_maintainerThis function adds a maintainer to the list of maintainers in the Solido state.
This function is gated so that only the manager role can call it successfully.
#
process_remove_maintainerThis function removes a maintainer from the list of maintainers in the Solido state.
This function is gated so that only the manager role can call it successfully.