Documentation
¶
Index ¶
- type LendPool
- func (p *LendPool) Init(protocolBasic model.ProtocolBasic) error
- func (p *LendPool) UpdatePoolParams(params LendPoolParams) error
- func (p *LendPool) UpdateTokensByAToken(atoken string) error
- func (p *LendPool) UpdateTokensByCToken(ctoken string) error
- func (p *LendPool) UpdateTokensBySToken(stoken string) error
- func (p *LendPool) UpdateTokensByUnderlying(underlying string) error
- func (p *LendPool) UpdateTokensByVToken(vtoken string) error
- type LendPoolParams
- type LendPoolType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LendPool ¶
type LendPool struct { ProtocolBasic *model.ProtocolBasic UnderlyingBasic *erc.ERC20Info PoolType LendPoolType AToken lendaavelike.AToken VToken lendaavelike.VToken SToken lendaavelike.SToken CToken lendcompoundlike.CToken Params LendPoolParams }
func (*LendPool) Init ¶
func (p *LendPool) Init(protocolBasic model.ProtocolBasic) error
Initialize the lend pool protocol basic and pool type.
func (*LendPool) UpdatePoolParams ¶
func (p *LendPool) UpdatePoolParams(params LendPoolParams) error
Update the pool params. Not sure how to read these params from contracts.
func (*LendPool) UpdateTokensByAToken ¶
Update pool tokens info by a token.
func (*LendPool) UpdateTokensByCToken ¶
Update pool tokens info by c token.
func (*LendPool) UpdateTokensBySToken ¶
Update pool tokens info by s token.
func (*LendPool) UpdateTokensByUnderlying ¶
Update pool tokens info by underlying token.
func (*LendPool) UpdateTokensByVToken ¶
Update pool tokens info by v token.
type LendPoolParams ¶
type LendPoolType ¶
Click to show internal directories.
Click to hide internal directories.