Skip to content

Commit

Permalink
Erc4626 net value simulation (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
piekczyk authored Jun 21, 2024
1 parent c9bf6cf commit 0a65647
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/dma-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oasisdex/dma-library",
"version": "0.6.54",
"version": "0.6.55",
"typings": "lib/index.d.ts",
"types": "lib/index.d.ts",
"main": "lib/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/dma-library/src/types/common/erc4626-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class Erc4626Position implements IErc4626Position {
this.owner,
this.quoteTokenAmount.plus(quoteTokenAmount),
this.marketPrice,
this.netValue,
this.netValue.plus(quoteTokenAmount.times(this.marketPrice)),
this.pnl,
this.totalEarnings,
this.maxWithdrawal.plus(quoteTokenAmount),
Expand All @@ -303,7 +303,7 @@ export class Erc4626Position implements IErc4626Position {
this.owner,
this.quoteTokenAmount.minus(quoteTokenAmount),
this.marketPrice,
this.netValue,
this.netValue.minus(quoteTokenAmount.times(this.marketPrice)),
this.pnl,
this.totalEarnings,
this.maxWithdrawal.minus(quoteTokenAmount),
Expand Down

0 comments on commit 0a65647

Please sign in to comment.