Skip to main content

MarketFacetBase.sol

MarketFacetBase

onlyDao

modifier onlyDao()

Modifier to restrict access to only the DAO. Throws an OnlyAccessableByDao error if the caller is not the DAO.

onlyVault

modifier onlyVault()

Modifier to restrict a function to be called only by the vault contract. Throws an OnlyAccessableByVault error if the caller is not the chromatic vault contract.

withTradingLock

modifier withTradingLock()

newLpContext

function newLpContext(struct MarketStorage ms) internal view returns (struct LpContext)

Creates a new LP context.

  • Return Values:

    NameTypeDescription
    [0]struct LpContextThe LP context.