priceoracle

package
v0.0.0-...-83008eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// CurrentPrice CurrentRate CurrentTotalPrice get cached info from memory.
	CurrentPrice(token common.Address) (*big.Int, error)
	CurrentRate(token common.Address) (*big.Int, error)
	CurrentTotalPrice(token common.Address) (*big.Int, error)

	// CheckNewPrice retrieves latest available information from oracle
	CheckNewPrice(token common.Address) (*big.Int, error)
}

func New

func New(priceOracleAddress common.Address, transactionService transaction.Service) Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL