Message: ExecuteMsg.AddMargin
This message can be sent via a CosmosWasm contract and allows for a collateral to be added to an existing position. The parameters that a user can control are
Sender
— This is the account holding the position. There are no checks (see ).Pair
— This is the pair of the position to be closed. It is checked to ensure that it is valid and that there is an open position, a market, and an AMM for the pair.Margin
— This is the amount of collateral to add to the position. There are no checks on the amount or the denom to ensure it matches the pair (see ).
The flow is then the same as the regular AddMargin
transaction; see .