c

org.bitcoins.core.protocol.dlc

OutcomePayoutQuadratic

case class OutcomePayoutQuadratic(leftEndpoint: OutcomePayoutEndpoint, midpoint: OutcomePayoutMidpoint, rightEndpoint: OutcomePayoutEndpoint) extends DLCPayoutCurvePiece with Product with Serializable

A quadratic between left and right endpoints defining a piece of a larger payout curve. A quadratic equation defines a parabola: https://en.wikipedia.org/wiki/Quadratic_function

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OutcomePayoutQuadratic
  2. Serializable
  3. Product
  4. Equals
  5. DLCPayoutCurvePiece
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new OutcomePayoutQuadratic(leftEndpoint: OutcomePayoutEndpoint, midpoint: OutcomePayoutMidpoint, rightEndpoint: OutcomePayoutEndpoint)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(outcome: Long): Satoshis
  5. def apply(outcome: Long, rounding: RoundingIntervals, totalCollateral: Satoshis): Satoshis
    Definition Classes
    DLCPayoutCurvePiece
  6. def apply(outcome: Long, rounding: RoundingIntervals): Satoshis
    Definition Classes
    DLCPayoutCurvePiece
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def bigDecimalSats(bd: BigDecimal): Satoshis

    Returns the largest Long less than or equal to bd (floor function)

    Returns the largest Long less than or equal to bd (floor function)

    Attributes
    protected
    Definition Classes
    DLCPayoutCurvePiece
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val leftEndpoint: OutcomePayoutEndpoint
  15. val midpoint: OutcomePayoutMidpoint
  16. lazy val midpoints: Vector[OutcomePayoutMidpoint]
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. val rightEndpoint: OutcomePayoutEndpoint
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from DLCPayoutCurvePiece

Inherited from AnyRef

Inherited from Any

Ungrouped