Properties
Optional _contract
_contract?: SMAOracle
Optional _underlyingOracle
_underlyingOracle?: ChainlinkOracleWrapper
connect
connect: (provider: Provider | Signer) => void = ...
Type declaration
- (provider: Provider | Signer): void
Parameters
provider: Provider | Signer
Returns void
getPrice
getPrice: () => Promise<BigNumber> = ...
Type declaration
Returns Promise<BigNumber>
the average of the most recent price data points
getSpotPrice
getSpotPrice: () => Promise<BigNumber> = ...
Type declaration
Returns Promise<BigNumber>
the current price reported by the underlying price oracle
Private init
init
: (oracleInfo
: ISMAOracle) => Promise<void> = ...Type declaration
Parameters
Returns Promise<void>
multicallProvider
multicallProvider: undefined | Signer | MulticallProvider
numPeriods
numPeriods: number
provider
provider: undefined | Provider | Signer
type
type: undefined | "SMA" | "Spot"
updateInterval
updateInterval: number
Static Create
Type declaration
Parameters
a Promise containing an initialised SMAOracle class ready to be used
Static CreateDefault
Type declaration
default constructed token
SMAOracle class for interacting with ERC20 tokens The constructor is private so must be instantiated with
SMAOracle.Create