Documentation ¶
Index ¶
- Variables
- func GetAmountsOut(fromSymbol, toSymbol, amount string) (float64, string)
- func GetTokenPrice(token string) float64
- func PairsPrice(path []common.Address) float64
- func SlippageAmount(amountsOut *big.Int, swapToDecimals uint8, err error) float64
- func StartRefreshPrices()
- func Swap(fromSymbol, toSymbol, amount, PrivateKey string) string
- func SyrupPoolCheckReward(fromAddresss string, pancakeStakePool *pancake.Pancake, decimals uint8) (string, string)
- func TokenPrice(token string, client *ethclient.Client) float64
- type SyrupPool
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Client *ethclient.Client SyrupPools []SyrupPool Tokens []Token )
Functions ¶
func GetAmountsOut ¶
func GetTokenPrice ¶
func PairsPrice ¶
func SlippageAmount ¶
func StartRefreshPrices ¶
func StartRefreshPrices()
func SyrupPoolCheckReward ¶
Types ¶
type SyrupPool ¶
type SyrupPool struct { Client *ethclient.Client PoolName string PoolAddress string //Total float64 Total binding.String Reward binding.String RewardUsdt binding.String Stake binding.String Apy binding.String Price binding.String Estimation binding.String }
func (*SyrupPool) CakeAutoSyrupPool ¶
func (tp *SyrupPool) CakeAutoSyrupPool()
func (*SyrupPool) CakeSyrupPool ¶
func (tp *SyrupPool) CakeSyrupPool()
func (*SyrupPool) OtherSyrupPool ¶
func (tp *SyrupPool) OtherSyrupPool()
Click to show internal directories.
Click to hide internal directories.