Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LiquidityPool ¶
type LiquidityPool struct { BaseModel Address string `gorm:"primary_key"` FactoryAddress string Name string Symbol string Description string Exchange string Token0Address string Token1Address string Token0Weight int Token1Weight int Token0 Token Token1 Token Reserve0 *utils.BigInt `gorm:"type:bytea"` Reserve1 *utils.BigInt `gorm:"type:bytea"` Token0Price float64 `gorm:"-"` Token1Price float64 `gorm:"-"` }
func (LiquidityPool) LpToken ¶
func (l LiquidityPool) LpToken() *tokens.LpToken
type LiquidityPools ¶
type LiquidityPools []LiquidityPool
func (*LiquidityPools) LoadSupportedPools ¶
func (l *LiquidityPools) LoadSupportedPools(db *gorm.DB) error
type Token ¶
type Token struct { BaseModel Address string `gorm:"primary_key"` Name string Symbol string LogoUrl string Decimals int TotalSupply int64 LoanAmount int64 //`gorm:"-"` }
func NewTokenFromERC20 ¶
func (Token) FormattedTotalSupply ¶
type Transaction ¶
type Transaction struct {
BaseModel
}
Click to show internal directories.
Click to hide internal directories.