Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Sep 25, 2024
1 parent 3849c2a commit 6b77257
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ object VaultAccountCalculator {
vaultInfo: AccountVaultResponse,
vaultTransfers: IndexerTransferBetweenResponse
): VaultAccount {
val presentValue = vaultInfo.equity
val presentValue = vaultInfo.equity?.let { it / 1_000_000 }
val netTransfers = parser.asDouble(vaultTransfers.totalNetTransfers)
val withdrawable = vaultInfo.withdrawableEquity
val withdrawable = vaultInfo.withdrawableEquity?.let { it / 1_000_000 }
val allTimeReturn =
if (presentValue != null && netTransfers != null) (presentValue - netTransfers) else null

Expand Down

0 comments on commit 6b77257

Please sign in to comment.