diff --git a/contracts/Lens.sol b/contracts/Lens.sol index 1fcf3af..c2ab417 100644 --- a/contracts/Lens.sol +++ b/contracts/Lens.sol @@ -43,6 +43,8 @@ contract Lens { Local local; Order latestOrder; Order pendingOrder; + Guarantee latestGuarantee; + Guarantee pendingGuarantee; Position position; Position nextPosition; Checkpoint checkpoint; @@ -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); diff --git a/package.json b/package.json index 8c1078f..601a636 100644 --- a/package.json +++ b/package.json @@ -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",