Skip to main content

LongShortToken

Overview

LongShortToken contract representing PrePOMarket positions.

The token can represent either a Long or Short position for the PrePOMarket it belongs to.

Functions

owner

  function owner(
) external returns (address)

Inherited from OpenZeppelin Ownable.

mint

  function mint(
address recipient,
uint256 amount
) external

Mints amount tokens to recipient. Allows PrePOMarket to mint positions for users.

Only callable by owner() (should be PrePOMarket).

Parameters:

NameTypeDescription
recipientaddressAddress of the recipient
amountuint256Amount of tokens to mint

burnFrom

  function burnFrom(
address account,
uint256 amount
) external

Destroys amount tokens from account, deducting from the caller's allowance.

Inherited from OpenZeppelin ERC20Burnable.

Parameters:

NameTypeDescription
accountaddressAddress of the account to destroy tokens from
amountuint256Amount of tokens to destroy