Assessment reports>STFX>Threat Models>openSpot

Function: openSpot(uint96 amount, uint96 received, byte[32] salt)

Opens a Spot by setting the status to OPENED. Only callable by plugins and will be used by the Trade contract after actually opening up the position.

Inputs

  • amount

    • Control: Full.

    • Constraints: None.

    • Impact: Affects totalAmountUsed, used when calculating claims.

  • received

    • Control: Full.

    • Constraints: None.

    • Impact: Sets totalReceived, but it is not used in any contracts in the scope.

  • salt

    • Control: Full.

    • Constraints: None.

    • Impact: The salt that identifies the STF to open.

Zellic © 2024Back to top ↑