current_invest

package
v0.0.0-...-8b20efb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentStakingInfo

type CurrentStakingInfo struct {
	Platform             string
	StakingPoolName      string
	StakingPoolAddr      common.Address
	StakedLPAmount       *big.Int
	StakedLPInitValue    *big.Int
	StakedLPCurrentValue *big.Int
	StakedLPAddr         common.Address
	PendingReceiveAmount *big.Int
	PendingReceiveValue  *big.Int
}

func GetHarvestStaked

func GetHarvestStaked(userAddr common.Address) ([]*CurrentStakingInfo, error)

func GetSushiStaking

func GetSushiStaking(userAddr common.Address) ([]*CurrentStakingInfo, error)

func GetUniswapStaking

func GetUniswapStaking(userAddr common.Address) ([]*CurrentStakingInfo, error)

type Reserves

type Reserves struct {
	Reserve0 *big.Int
	Reserve1 *big.Int
}

type UniswapPoolInfo

type UniswapPoolInfo struct {
	Token0Info   *erc20.ERC20Info
	Token1Info   *erc20.ERC20Info
	PoolReserves *Reserves
	TotalSupply  *big.Int
}

type UserLiquidityInvest

type UserLiquidityInvest struct {
	Platform    string
	LPAmount    *big.Int
	LPValue     *big.Int
	PoolAddr    common.Address
	LPInitValue *big.Int
	PoolInfo    *UniswapPoolInfo
	PoolName    string
}

func GetHarvestLiquidity

func GetHarvestLiquidity(userAddr common.Address) ([]*UserLiquidityInvest, error)

func GetSushiPoolInvest

func GetSushiPoolInvest(userAddr common.Address) ([]*UserLiquidityInvest, error)

func GetUniswapPoolInvest

func GetUniswapPoolInvest(userAddr common.Address) ([]*UserLiquidityInvest, error)

func (*UserLiquidityInvest) CalcLPValue

func (l *UserLiquidityInvest) CalcLPValue() (*big.Int, error)

Jump to

Keyboard shortcuts

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