Skip to content

Commit

Permalink
Snapshot Guarantee, 0.0.3-beta.8
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-io committed Nov 17, 2024
1 parent f84c76c commit 678f4d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions contracts/Lens.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ contract Lens {
Local local;
Order latestOrder;
Order pendingOrder;
Guarantee latestGuarantee;
Guarantee pendingGuarantee;
Position position;
Position nextPosition;
Checkpoint checkpoint;
Expand Down Expand Up @@ -129,6 +131,8 @@ contract Lens {
marketAccountSnapshot.local = market.locals(account);
marketAccountSnapshot.latestOrder = market.pendingOrders(account, marketAccountSnapshot.local.latestId);
marketAccountSnapshot.pendingOrder = market.pendings(account);
marketAccountSnapshot.latestGuarantee = market.guarantees(account, marketAccountSnapshot.local.latestId);
marketAccountSnapshot.pendingGuarantee = market.guarantees(account, marketAccountSnapshot.local.currentId);
marketAccountSnapshot.position = market.positions(account);
marketAccountSnapshot.pendingPositions = new Position[](marketAccountSnapshot.local.currentId - marketAccountSnapshot.local.latestId + 1);
marketAccountSnapshot.checkpoint = market.checkpoints(account, marketAccountSnapshot.position.timestamp);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perennial/sdk",
"version": "0.0.3-beta.7",
"version": "0.0.3-beta.8",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 678f4d9

Please sign in to comment.