Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CTokenListMap = map[string]map[string]map[string]string{ ethaddr.CompoundProtocol: ethaddr.CompoundCTokenList, ethaddr.BenqiProtocol: ethaddr.BenqiCTokenList, ethaddr.TraderJoeProtocol: ethaddr.TraderjoeCTokenList, }
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 ¶
Use c token address to get underlying address.
func (*CToken) UpdateCTokenByUnderlying ¶
Use underlying address to update c token info.
Click to show internal directories.
Click to hide internal directories.