Skip to content

test framework: AccountMarginSummary precompile is not implemented #10

@0xjuaan

Description

@0xjuaan

The AccountMarginSummary precompile has not yet been implemented:

function readAccountMarginSummary(address user) public view returns (PrecompileLib.AccountMarginSummary memory) {
// 1. maintain an enumerable set for the perps that a user is in
// 2. iterate over their positions and calculate position value, add them up (value = abs(sz * markPx))
return PrecompileLib.accountMarginSummary(0, user);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions