prize_pool

package
v0.0.0-...-07d62d3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMintSupply

func GetMintSupply(client *rpc.Provider, account solana.PublicKey) (uint64, error)

GetMintSupply fetches the supply of a token via its mint address

func GetPrice

func GetPrice(client *rpc.Provider, account solana.PublicKey) (*big.Rat, error)

GetPrice wraps fetching the current price of a token

func GetTvl

func GetTvl(client *rpc.Provider, fluidityPubkey, tvlDataPubkey, solendPubkey, obligationPubkey, reservePubkey, pythPubkey, switchboardPubkey solana.PublicKey, payerAccount *solana.Wallet) (uint64, error)

GetTvl retrieves the current total value locked from chain using a simulated transaction

Types

This section is empty.

Jump to

Keyboard shortcuts

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