liquidity

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiquidityOtherInfo

type LiquidityOtherInfo struct {
	Liability     float64 // platypus Liability
	Cash          float64 // platypus cash
	CoverageRatio float64 // platypus coverage ratio
}

Struct for other infos for special protocols.

type LiquidityPool

type LiquidityPool struct {
	Tokens     []TokenOfLp        // the tokens to make up the lp
	LpToken    erc.ERC20Info      // basic info of lp token
	ApyInfo    apy.ApyInfo        // apy info
	Reserve    float64            // tvl in amount
	ReserveUSD float64            // tvl in usd
	Volume24   float64            // trade volume in 24 hours
	OtherInfo  LiquidityOtherInfo // some other infos for special protocols
}

Struct for liquidity pools.

type TokenOfLp

type TokenOfLp struct {
	Basic      erc.ERC20Info // basic info of token
	Underlying erc.ERC20Info // basic info of underlying token, if has no underlying, use basic
	Reserve    float64       // reserve of the single token in amount
	ReserveUSD float64       // reserve of the single token in usd
}

Struct for tokens to make up lp token.

Jump to

Keyboard shortcuts

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