Djed class abstract

Implementers

Constructors

Djed(Oracle oracle, double bankFee, double reservecoinDefaultPrice, double initReserves, double initStablecoins, double initReservecoins)
Protected fields. Only the inherited classes in the same library can access to them.

Properties

bankFee double
final
hashCode int
The hash code for this object.
no setterinherited
initReservecoins double
final
initReserves double
final
initStablecoins double
final
oracle Oracle
final
reservecoinDefaultPrice double
final
reservecoins double
no setter
reserves double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stablecoins double
no setter
targetPrice double
no setter

Methods

buyReservecoins(double amountRC) double
buyStablecoins(double amountSC) double
calculateBasecoinsForBurnedReservecoins(double amountRC) double
calculateBasecoinsForBurnedStablecoins(double amountSC) double
calculateBasecoinsForMintedReservecoins(double amountRC) double
calculateBasecoinsForMintedStablecoins(double amountSC) double
equity({double? R, double? nsc}) double
normLiabilities({double? R, double? nsc}) double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
require(bool predicate, {String msg = errorMessage}) → void
reservecoinNominalPrice({double? R, double? nsc, double? nrc}) double
reservesRatio({double? R, double? nsc}) double
sellReservecoins(double amountRC) double
sellStablecoins(double amountSC) double
stablecoinNominalPrice({double? R, double? nsc}) double
targetLiabilities({double? nsc}) double
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

errorMessage → const String