Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions generated/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2058,6 +2058,23 @@ export class Unwind extends Entity {
this.set("transferAmount", Value.fromBigInt(value));
}

get ovlSwapped(): BigInt | null {
let value = this.get("ovlSwapped");
if (!value || value.kind == ValueKind.NULL) {
return null;
} else {
return value.toBigInt();
}
}

set ovlSwapped(value: BigInt | null) {
if (!value) {
this.unset("ovlSwapped");
} else {
this.set("ovlSwapped", Value.fromBigInt(<BigInt>value));
}
}

get stableOut(): BigInt | null {
let value = this.get("stableOut");
if (!value || value.kind == ValueKind.NULL) {
Expand Down
4 changes: 3 additions & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ type Unwind @entity {
fractionOfPosition: BigInt!
# amount of OVL transferred to the owner
transferAmount: BigInt!
# amount of OVL transferred to the owner
# amount of OVL swapped
ovlSwapped: BigInt
# amount of Stables transferred to the owner
stableOut: BigInt
# PnL of this unwind
pnl: BigInt!
Expand Down
4 changes: 4 additions & 0 deletions src/__test__/unit/.latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version": "0.6.0",
"timestamp": 1765550149138
}
780 changes: 780 additions & 0 deletions src/__test__/unit/lbsc-full-flow.test.ts

Large diffs are not rendered by default.

Loading
Loading