Assessment reports>Nibiru>Threat Models>Message: ExecuteMsg.ClosePosition

Message: ExecuteMsg.ClosePosition

This message can be sent via a CosmosWasm contract and allows for a position to be closed. 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.

The flow is then the same as the regular ClosePosition transaction; see .

Zellic © 2024Back to top ↑