Skip to main content

AppLibrary

MissingCollateralAsset

error MissingCollateralAsset()

owner

function owner(struct StorageInstance instance) internal view returns (address)

position

function position(struct StorageInstance instance) internal pure returns (struct PositionSchema)

exchange

function exchange(struct StorageInstance instance) internal pure returns (struct ExchangeSchema)

props

function props(struct StorageInstance instance) internal pure returns (struct PropsSchema)

product

function product(struct StorageInstance instance) internal pure returns (struct ProductSchema)

vaultProps

function vaultProps(struct StorageInstance instance) internal pure returns (struct VaultSchema)

productId

function productId(struct StorageInstance instance) internal pure returns (struct ProductIdSchema)

withdrawRequest

function withdrawRequest(struct StorageInstance instance) internal pure returns (struct WithdrawRequestSchema)

fee

function fee(struct StorageInstance instance) internal pure returns (struct FeeSchema)

feeAllocations

function feeAllocations(struct StorageInstance instance) internal pure returns (struct FeeAllocationSchema)

fundingProps

function fundingProps(struct StorageInstance instance) internal pure returns (struct FundingSchema)

rewardDistributorProps

function rewardDistributorProps(
struct StorageInstance instance,
contract IERC20 collateralToken,
contract IERC20 rewardToken
) internal pure returns (
struct RewardDistributorSchema
)

priceFeedProps

function priceFeedProps(struct StorageInstance instance) internal pure returns (struct PriceFeedSchema)

feeDistributorProps

function feeDistributorProps(
struct StorageInstance instance
) internal pure returns (
struct FeeDistributorSchema
)

order

function order(struct StorageInstance instance) internal pure returns (struct OrderSchema)

orderProps

function orderProps(struct StorageInstance instance) internal pure returns (struct OrderPropsSchema)

erc20

function erc20(struct StorageInstance instance, TokenName token) internal pure returns (struct ERC20Schema)

erc4626

function erc4626(struct StorageInstance instance, TokenName token) internal pure returns (struct ERC4626Schema)

contracts

function contracts(struct StorageInstance instance) internal view returns (contract IContractStorage)

resolveContract

function resolveContract(struct StorageInstance instance, ContractName name) internal view returns (address)

perp

function perp(struct StorageInstance instance) internal view returns (contract IDomFiPerp)

formulas

function formulas(struct StorageInstance instance) internal view returns (contract IExchangeFormulas)

funding

function funding(struct StorageInstance instance) internal view returns (contract IFundingManager)

feeCalculator

function feeCalculator(struct StorageInstance instance) internal view returns (contract IFeeCalculator)

feeReferral

function feeReferral(struct StorageInstance instance) internal view returns (contract IFeeReferral)

feeDistributor

function feeDistributor(struct StorageInstance instance) internal view returns (contract IFeeDistributor)

rewardDistributor

function rewardDistributor(struct StorageInstance instance) internal view returns (contract IRewardDistributor)

vault

function vault(struct StorageInstance instance) internal view returns (contract IDomFiVault)

vaultFormulas

function vaultFormulas(struct StorageInstance instance) internal view returns (contract IVaultFormulas)

collateral

function collateral(struct StorageInstance instance) internal view returns (contract IERC20)

priceFeed

function priceFeed(struct StorageInstance instance) internal view returns (contract IPriceFeed)

vaultShares

function vaultShares(struct StorageInstance instance) internal view returns (contract IERC20)