case class OutcomePayoutCubic(leftEndpoint: OutcomePayoutPoint, leftMidpoint: OutcomePayoutPoint, rightMidpoint: OutcomePayoutPoint, rightEndpoint: OutcomePayoutPoint) extends DLCPolynomialPayoutCurvePiece with Product with Serializable
A cubic between left and right endpoints defining a piece of a larger payout curve
- Alphabetic
- By Inheritance
- OutcomePayoutCubic
- Serializable
- Product
- Equals
- DLCPolynomialPayoutCurvePiece
- DLCPayoutCurvePiece
- TLVSerializable
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new OutcomePayoutCubic(leftEndpoint: OutcomePayoutPoint, leftMidpoint: OutcomePayoutPoint, rightMidpoint: OutcomePayoutPoint, rightEndpoint: OutcomePayoutPoint)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(outcome: Long): Satoshis
- Definition Classes
- OutcomePayoutCubic → DLCPayoutCurvePiece
- def apply(outcome: Long, rounding: RoundingIntervals, totalCollateral: Satoshis): Satoshis
- Definition Classes
- DLCPayoutCurvePiece
- def apply(outcome: Long, rounding: RoundingIntervals): Satoshis
- Definition Classes
- DLCPayoutCurvePiece
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- def byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- NetworkElement
- def bytes: ByteVector
The byte representation of the NetworkElement
The byte representation of the NetworkElement
- Definition Classes
- TLVSerializable → NetworkElement
- def bytesLE: ByteVector
The byte representation of the NetworkElement in little endian
The byte representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flip(totalCollateral: Satoshis): DLCPolynomialPayoutCurvePiece
- Definition Classes
- DLCPolynomialPayoutCurvePiece → DLCPayoutCurvePiece
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hex: String
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement
- Definition Classes
- NetworkElement
- def hexLE: String
The hexadecimal representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val leftEndpoint: OutcomePayoutPoint
- Definition Classes
- OutcomePayoutCubic → DLCPayoutCurvePiece
- val leftMidpoint: OutcomePayoutPoint
- lazy val midpoints: Vector[OutcomePayoutPoint]
- Definition Classes
- OutcomePayoutCubic → DLCPolynomialPayoutCurvePiece
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def points: Vector[OutcomePayoutPoint]
- Definition Classes
- DLCPolynomialPayoutCurvePiece
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val rightEndpoint: OutcomePayoutPoint
- Definition Classes
- OutcomePayoutCubic → DLCPayoutCurvePiece
- val rightMidpoint: OutcomePayoutPoint
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toTLV: PolynomialPayoutCurvePieceTLV
- Definition Classes
- DLCPolynomialPayoutCurvePiece → TLVSerializable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()