ElektroMultiplierAware.sol

View Source: contracts/elektro/utils/ElektroMultiplierAware.sol

↘ Derived Contracts: ElektroLedgerCommon

ElektroMultiplierAware

Functionality to get multipliers and precision for market assets. src - underlying asset dest - strike (premium) asset multiplier - 10^(decimals - precision) These functions get values from TokenValidator contract by asset address.

Structs

PrecisionsMultipliers

struct PrecisionsMultipliers {
 uint256 srcMultiplier,
 uint256 destMultiplier,
 uint256 srcPrecision,
 uint256 destPrecision
}

Functions

  • getDestSrcPrecisions(address underlyingCurrency, address strikeCurrency, address tokenValidator)

getDestSrcPrecisions

function getDestSrcPrecisions(address underlyingCurrency, address strikeCurrency, address tokenValidator) internal view
returns(precisionDest uint256, toTokenPowerDest uint256, precisionSrc uint256, toTokenPowerSrc uint256)

Arguments

NameTypeDescription

underlyingCurrency

address

strikeCurrency

address

tokenValidator

address

Last updated