lib

package
v0.0.0-...-04e8dd1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculatePrice

func CalculatePrice(amountOut *big.Int, reserves []Reserves) *big.Int

CalculatePrice calculates token price in ETH by using it's path with denomoinator.

Types

type Reserves

type Reserves struct {
	In, Out *big.Int
}

Reserves is

Jump to

Keyboard shortcuts

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