Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ATokenListMap = map[string]map[string]map[string]string{ ethaddr.AaveV2Protocol: ethaddr.AaveATokenV2List, ethaddr.AaveV3Protocol: ethaddr.AaveATokenV3List, }
map[protocol name][network][underlying] = a token.
View Source
var STokenListMap = map[string]map[string]map[string]string{ ethaddr.AaveV2Protocol: ethaddr.AaveSTokenV2List, ethaddr.AaveV3Protocol: ethaddr.AaveSTokenV3List, }
map[protocol name][network][underlying] = s token.
View Source
var VTokenListMap = map[string]map[string]map[string]string{ ethaddr.AaveV2Protocol: ethaddr.AaveVTokenV2List, ethaddr.AaveV3Protocol: ethaddr.AaveVTokenV3List, }
map[protocol name][network][underlying] = v token.
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 apy.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 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 apy.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 apy.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.