Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AToken ¶
type AToken struct {
ProtocolBasic *model.ProtocolBasic
Basic *erc.ERC20Info // basic info of the token
UnderlyingBasic *erc.ERC20Info // basic info of the underlying token
ApyInfo model.ApyInfo // deposit apy info
}
func (*AToken) GetUnderlyingAddress ¶
Use a token address to get underlying address.
func (*AToken) UpdateATokenByUnderlying ¶
Use underlying address to update a token info.
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 model.ApyInfo // deposit apy info
BorrowApyInfo model.ApyInfo // deposit apy info
}
func (*CToken) GetUnderlyingAddress ¶
Use c token address to get underlying address.
func (*CToken) UpdateCTokenByUnderlying ¶
Use underlying address to update c token info.
type SToken ¶
type SToken struct {
ProtocolBasic *model.ProtocolBasic
Basic *erc.ERC20Info // basic info of the token
UnderlyingBasic *erc.ERC20Info // basic info of the underlying token
ApyInfo model.ApyInfo // borrow stable apy info
}
func (*SToken) GetUnderlyingAddress ¶
Use s token address to get underlying address.
func (*SToken) UpdateSTokenByUnderlying ¶
Use underlying address to update s token info.
type VToken ¶
type VToken struct {
ProtocolBasic *model.ProtocolBasic
Basic *erc.ERC20Info // basic info of the token
UnderlyingBasic *erc.ERC20Info // basic info of the underlying token
ApyInfo model.ApyInfo // borrow variable apy info
}
func (*VToken) GetUnderlyingAddress ¶
Use v token address to get underlying address.
func (*VToken) UpdateVTokenByUnderlying ¶
Use underlying address to update v token info.
Click to show internal directories.
Click to hide internal directories.