math

package
v0.0.0-...-70034fb Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Product

func Product(nums ...*big.Int) *big.Int

Product - return Product of all big integers in array

func Sum

func Sum(nums ...*big.Int) *big.Int

func SwapAmountOut

func SwapAmountOut(
	reserves0, reserves1 []*big.Int, amountIn *big.Int,
) *big.Int

SwapAmountOut - calculates amounts of tokens that you will get after swap

Types

This section is empty.

Jump to

Keyboard shortcuts

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