All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavesplatform.state.BalanceSnapshot.scala Maven / Gradle / Ivy

The newest version!
package com.wavesplatform.state

case class BalanceSnapshot(height: Int, regularBalance: Long, leaseIn: Long, leaseOut: Long) {
  lazy val effectiveBalance = regularBalance + leaseIn - leaseOut
}

object BalanceSnapshot {
  def apply(height: Int, p: Portfolio): BalanceSnapshot =
    BalanceSnapshot(height, p.balance, p.lease.in, p.lease.out)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy