-
Notifications
You must be signed in to change notification settings - Fork 19
test framework: AccountMarginSummary precompile is not implemented #10
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The AccountMarginSummary precompile has not yet been implemented:
hyper-evm-lib/test/simulation/hyper-core/CoreView.sol
Lines 126 to 130 in 394c759
| 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); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request