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 UniswapPoolInfo ¶
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)
Click to show internal directories.
Click to hide internal directories.