Assessment reports>Silo Staking>Threat Model>Message: ExecuteMsg::TuneDelegations

Message: ExecuteMsg::TuneDelegations

The message could only be used by the address with owner privileges and is used to update the delegation_goal depending on the type of the delegation strategy.

This message does not expect any user parameters.

The message executes the tune_delegations function. The function would first call get_wanted_delegations, which calculates the wanted delegations based on the delegation strategy (the amp + emp gauges) and returns a struct WantedDelegationsShare and a boolean. The value of the boolean is false if the delegation strategy is Uniform, and true otherwise. If this boolean is true, the returned struct is saved in the delegation_goal storage.

Zellic © 2024Back to top ↑