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

Message: ExecuteMsg::Callback

The callback message dispatches Silo callbacks from previous messages. Only the Silo contract can invoke the callback functionality; these callbacks are results of operations from earlier calls into the Silo contract.

The different subfuctionalities of the callback message are the following:

CallbackMsg::Reinvest — This subfunctionality is responsible for reinvesting accrued rewards. It is called from the harvest message and ensures that bonded tokens compound. No user parameters are supplied.

CallbackMsg::WithdrawLps — This subfunctionality is responsible for removing LP positions if there are any. It is only accessible to operator through the harvest function, which invokes the callback. The user parameters are the withdrawal steps supplied during harvest.

CallbackMsg::SingleStageSwap — This subfunctionality is responsible for swapping withdrawal rewards into other tokens. It is only accessible to operators through the harvest function, which invokes the callback. The user parameters are the swap stages supplied during harvest.

CallbackMsg::CheckReceivedCoin— This subfunctionality is used by the contract to check the amount of delegator rewards actually withdrawn. It is used as a callback after the withdraw reward message is executed, also called by harvest.

Zellic © 2024Back to top ↑