lendcompoundlike

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

map[protocol name][network][underlying] = c token.

Functions

This section is empty.

Types

type CToken

type CToken struct {
	ProtocolBasic   *model.ProtocolBasic
	Basic           *erc.ERC20Info // basic info of the token
	UnderlyingBasic *erc.ERC20Info // basic info of the underlying token
	DepositApyInfo  apy.ApyInfo    // deposit apy info
	BorrowApyInfo   apy.ApyInfo    // deposit apy info
}

func (*CToken) GetUnderlyingAddress

func (t *CToken) GetUnderlyingAddress(ctoken string) (string, error)

Use c token address to get underlying address.

func (*CToken) UpdateCTokenByUnderlying

func (t *CToken) UpdateCTokenByUnderlying(underlying string) error

Use underlying address to update c token info.

Jump to

Keyboard shortcuts

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