Skip to main content

ExchangeModule

ExchangeModule

Addresses

ChainAddress

Functions

props

function props() internal view returns (struct PropsSchema)

positions

function positions() internal view returns (struct PositionSchema)

products

function products() internal view returns (struct ProductSchema)

__ExchangeModule_ctor

function __ExchangeModule_ctor(
struct StorageInstance app_,
ContractName contractName_,
uint256 contractVersion_
) internal

__ExchangeModule_init

function __ExchangeModule_init(
struct StorageInstance app_,
ContractName contractName_,
uint256 contractVersion_
) internal

__ExchangeModule_setup

function __ExchangeModule_setup() internal

formulas

function formulas() internal view returns (contract IExchangeFormulas)

exchangeIncrease

function exchangeIncrease() internal view returns (contract IExchangeIncreasePositionHandler)

exchangeDecrease

function exchangeDecrease() internal view returns (contract IExchangeDecreasePositionHandler)

exchangeLiquidate

function exchangeLiquidate() internal view returns (contract IExchangeLiquidatePositionHandler)

exchangeProduct

function exchangeProduct() internal view returns (contract IExchangeProductHandler)

exchangeRemoveMargin

function exchangeRemoveMargin() internal view returns (contract IExchangeRemoveMarginHandler)

Types

ExchangeSlot

Fields

NameTypeDescription
propsstruct PropsSchema
positionsstruct PositionSchema
productsstruct ProductSchema
struct ExchangeSlot {
struct PropsSchema props;
struct PositionSchema positions;
struct ProductSchema products;
}