UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

28 lines (27 loc) 1.3 kB
import { SignerOrProvider } from '../../types'; import { CompoundRateKeeper } from '../../ethers-contracts/CompoundRateKeeper'; import { SystemContractInstance } from '../SystemContractInstance'; /** * Compound rate keeper instance to interact with Compound rate keeper contract. * See [onchain documentation](@system-contracts-repo/@network/CompoundRateKeeper/) for more details. */ export declare class CompoundRateKeeperInstance extends SystemContractInstance<CompoundRateKeeper> { static readonly abi = "CompoundRateKeeper.json"; constructor(signerOrProvider: SignerOrProvider, address: string); /** * [External documentation](@system-contracts-repo/@network/CompoundRateKeeper/#getcurrentrate) */ getCurrentRate(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/CompoundRateKeeper/#getlastupdate) */ getLastUpdate(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/CompoundRateKeeper/#normalizeamount) */ normalizeAmount(targetAmount: string | number): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/CompoundRateKeeper/#denormalizeamount) */ denormalizeAmount(normalizedAmount: string | number): Promise<string>; }