Message: ExecuteMsg.PegShift
This message can be sent via a CosmosWasm contract and allows for the peg multiplier of an AMM pool to be updated after making sure there is enough money in the PerpEFModule fund to pay for it. These funds get sent to the vault to pay for a trader's new net margin.
The contractAddr
address is checked to ensure that it is contained within the set of sudo contracts defined in the x/sudo module.
The parameters that a user can control are
Pair
— This is the pair of the AMM to update the peg multiplier for. It is checked to ensure that it is valid and that there is an AMM for it.PegMult
— This is the new peg multiplier to set for the AMM; it must be greater than zero.