rates

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	Assets []struct {
		Type     string `json:"type"`
		Address  string `json:"address"`
		Metadata *struct {
			Name     string  `json:"name"`
			Symbol   string  `json:"symbol"`
			Decimals float64 `json:"decimals"`
		} `json:"metadata"`
	} `json:"assets"`
	Reserves []string `json:"reserves"`
}

type TonRates

type TonRates struct {
	Rates map[string]float64
	// contains filtered or unexported fields
}

func InitTonRates

func InitTonRates(logger *zap.Logger) *TonRates

func (*TonRates) GetRates

func (r *TonRates) GetRates() map[string]float64

Jump to

Keyboard shortcuts

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